aboutsummaryrefslogtreecommitdiffhomepage
path: root/ide/coq.ml
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <Pierre.Courtieu@cnam.fr>2017-04-26 11:57:58 +0200
committerGravatar Pierre Courtieu <Pierre.Courtieu@cnam.fr>2017-05-04 11:13:49 +0200
commit1fe73e6af81759fa8b78c8660745492ed886d477 (patch)
tree4847f56a199aa1f2cd433b3f0c1d791563634fbe /ide/coq.ml
parent773d95f915996b581b7ea82d9193197649c951a0 (diff)
Adding an option "Printing Unfocused".
Off by default. + small refactoring of emacs hacks in printer.ml.
Diffstat (limited to 'ide/coq.ml')
-rw-r--r--ide/coq.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/ide/coq.ml b/ide/coq.ml
index 3a1d87787..cd45e2fcd 100644
--- a/ide/coq.ml
+++ b/ide/coq.ml
@@ -519,6 +519,7 @@ struct
let all_basic = ["Printing"; "All"]
let existential = ["Printing"; "Existential"; "Instances"]
let universes = ["Printing"; "Universes"]
+ let unfocused = ["Printing"; "Unfocused"]
type bool_descr = { opts : t list; init : bool; label : string }
@@ -534,7 +535,8 @@ struct
label = "Display _existential variable instances" };
{ opts = [universes]; init = false; label = "Display _universe levels" };
{ opts = [all_basic;existential;universes]; init = false;
- label = "Display all _low-level contents" }
+ label = "Display all _low-level contents" };
+ { opts = [unfocused]; init = false; label = "Display _unfocused goals" }
]
(** The current status of the boolean options *)
@@ -549,6 +551,8 @@ struct
let _ = reset ()
+ let printing_unfocused () = Hashtbl.find current_state unfocused
+
(** Transmitting options to coqtop *)
let enforce h k =