aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2003-10-13 08:46:23 +0000
committerherbelin2003-10-13 08:46:23 +0000
commitb6cbbb30f6272f93e8d0c3de4da4165ad079109d (patch)
treee1f6e57b31efeda1e228813726154837b8a4d7bd
parent8c0a5f183b1c9cff8baddd7f71d18e1cf768a191 (diff)
Protection contre les noms de lemmes existant deja
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4607 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--toplevel/command.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index a7cac8ac68..fb95bdc345 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -630,12 +630,12 @@ let start_proof_com sopt kind (bl,t) hook =
let id = match sopt with
| Some id ->
(* We check existence here: it's a bit late at Qed time *)
- if Nametab.exists_cci (Lib.make_path id) then
+ if is_global id then
errorlabstrm "start_proof" (pr_id id ++ str " already exists");
id
| None ->
- next_ident_away (id_of_string "Unnamed_thm")
- (Pfedit.get_all_proof_names ())
+ next_global_ident_away false (id_of_string "Unnamed_thm")
+ (Pfedit.get_all_proof_names ())
in
let env = Global.env () in
let c = interp_type Evd.empty env (generalize_rawconstr t bl) in