aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorppedrot2011-11-18 15:02:56 +0000
committerppedrot2011-11-18 15:02:56 +0000
commit75a5f25a31a70a6b6535f248dce5d73534b91cb6 (patch)
tree1f45b130e3eb60fb07de775499eea6e791b7c981 /ide
parente5b07b820f73be273427523d72f1e3ddf44426ac (diff)
Making status info better in CoqIDE: path and name of current lemma
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14684 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide')
-rw-r--r--ide/coq.mli2
-rw-r--r--ide/coqide.ml20
2 files changed, 16 insertions, 6 deletions
diff --git a/ide/coq.mli b/ide/coq.mli
index 047a265879..b3b51d3fcf 100644
--- a/ide/coq.mli
+++ b/ide/coq.mli
@@ -48,7 +48,7 @@ val interrupter : (int -> unit) ref
val interp :
coqtop -> ?raw:bool -> ?verbose:bool -> string -> string Ide_intf.value
val rewind : coqtop -> int -> int Ide_intf.value
-val status : coqtop -> string Ide_intf.value
+val status : coqtop -> Ide_intf.status Ide_intf.value
val goals : coqtop -> Ide_intf.goals Ide_intf.value
val inloadpath : coqtop -> string -> bool Ide_intf.value
val mkcases : coqtop -> string -> string list list Ide_intf.value
diff --git a/ide/coqide.ml b/ide/coqide.ml
index 899d0d6cad..d224e72b56 100644
--- a/ide/coqide.ml
+++ b/ide/coqide.ml
@@ -2179,11 +2179,21 @@ let main files =
let av = current.analyzed_view in
ignore (f av);
pop_info ();
- push_info
- (match Coq.status !(current.toplvl) with
- | Ide_intf.Fail (l,str) ->
- "Oops, problem while fetching coq status."
- | Ide_intf.Good str -> str)
+ let msg = match Coq.status !(current.toplvl) with
+ | Ide_intf.Fail (l, str) ->
+ "Oops, problem while fetching coq status."
+ | Ide_intf.Good status ->
+ let path = match status.Ide_intf.status_path with
+ | None -> ""
+ | Some p -> " in " ^ p
+ in
+ let name = match status.Ide_intf.status_proofname with
+ | None -> ""
+ | Some n -> ", proving " ^ n
+ in
+ "Ready" ^ path ^ name
+ in
+ push_info msg
)
[session_notebook#current_term]
in