aboutsummaryrefslogtreecommitdiffhomepage
path: root/ide
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-05-23 12:46:11 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-05-23 12:46:11 +0000
commitf657facaf4fc5c6193acbabd75ef8aaae4674fe7 (patch)
tree7153be7a2577509c2991e682668bc0d6b837111c /ide
parenta2e1cc5f1d74fb0251faff9c9f00ff676ec2623a (diff)
Reducing CoqIDE start option queries.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15344 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide')
-rw-r--r--ide/coqide.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/ide/coqide.ml b/ide/coqide.ml
index 598e31dd6..f44b8a5e3 100644
--- a/ide/coqide.ml
+++ b/ide/coqide.ml
@@ -1241,8 +1241,11 @@ let create_session file =
let _ =
GtkBase.Widget.add_events proof#as_widget [`ENTER_NOTIFY;`POINTER_MOTION] in
let () =
- Coq.grab ct (fun handle ->
- List.iter (fun (opts,_,_,_,dflt) -> setopts handle opts dflt) print_items) in
+ let fold accu (opts, _, _, _, dflt) =
+ List.fold_left (fun accu opt -> (opt, dflt) :: accu) accu opts
+ in
+ let options = List.fold_left fold [] print_items in
+ Coq.grab ct (fun handle -> Coq.PrintOpt.set handle options) in
let _ =
proof#event#connect#motion_notify ~callback:
(fun e ->