aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorvgross2010-07-05 17:39:51 +0000
committervgross2010-07-05 17:39:51 +0000
commitd4af7ddf3585f6938ae24b72661965b1a00972ea (patch)
tree0447793d6e8bd17d95f6110f1ca05edb8f8d224f /toplevel
parenta90ccfa5f25858e8cb224b4cfa4f724ca84e3ea4 (diff)
Fix goal display when backtracking
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13246 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/ide_blob.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/toplevel/ide_blob.ml b/toplevel/ide_blob.ml
index d578122a0f..9dce5c1ccf 100644
--- a/toplevel/ide_blob.ml
+++ b/toplevel/ide_blob.ml
@@ -404,9 +404,10 @@ let concl_next_tac sigma concl =
])
let current_goals () =
- let pfts =
- Proof_global.give_me_the_proof ()
- in
+ try
+ let pfts =
+ Proof_global.give_me_the_proof ()
+ in
let { Evd.it=all_goals ; sigma=sigma } = Proof.V82.subgoals pfts in
if all_goals = [] then
begin
@@ -441,6 +442,7 @@ let current_goals () =
in
Goals (List.map process_goal all_goals)
end
+ with Proof_global.NoCurrentProof -> Message "" (* quick hack to have a clean message screen *)
let id_of_name = function
| Names.Anonymous -> id_of_string "x"