aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbertot2006-02-13 17:28:39 +0000
committerbertot2006-02-13 17:28:39 +0000
commit1ce234545207cee74be319a46ec5613b1952c664 (patch)
tree5914918df33be5b9cdc9ebcc3498ff3dd4edeb8e
parent82fb5aa169bff5d3aaa29c8eadce995379a5f7b5 (diff)
Bug correction in saving proofs: If a hook opens a proof but does not close it then the delete_current_proof () does not delete the good proof if executed AFTER the hook.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8041 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--toplevel/command.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index a6b9d5d623..a811653cdd 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -655,8 +655,8 @@ let save id const (locality,kind) hook =
let k = logical_kind_of_goal_kind kind in
let kn = declare_constant id (DefinitionEntry const, k) in
(Global, ConstRef kn) in
- hook l r;
Pfedit.delete_current_proof ();
+ hook l r;
definition_message id
let save_named opacity =
@@ -692,8 +692,8 @@ let admit () =
*)
let kn =
declare_constant id (ParameterEntry typ, IsAssumption Conjectural) in
- hook Global (ConstRef kn);
Pfedit.delete_current_proof ();
+ hook Global (ConstRef kn);
assumption_message id
let get_current_context () =