summaryrefslogtreecommitdiff
path: root/ide/coq.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2008-08-08 13:18:42 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2008-08-08 13:18:42 +0200
commit870075f34dd9fa5792bfbf413afd3b96f17e76a0 (patch)
tree0c647056de1832cf1dba5ba58758b9121418e4be /ide/coq.ml
parenta0cfa4f118023d35b767a999d5a2ac4b082857b4 (diff)
Imported Upstream version 8.2~beta4+dfsgupstream/8.2.beta4+dfsg
Diffstat (limited to 'ide/coq.ml')
-rw-r--r--ide/coq.ml12
1 files changed, 7 insertions, 5 deletions
diff --git a/ide/coq.ml b/ide/coq.ml
index 5166fb21..c560f0db 100644
--- a/ide/coq.ml
+++ b/ide/coq.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: coq.ml 11126 2008-06-13 18:45:04Z herbelin $ *)
+(* $Id: coq.ml 11238 2008-07-19 09:34:03Z herbelin $ *)
open Vernac
open Vernacexpr
@@ -44,6 +44,8 @@ let init () =
messages *)
(**)
Flags.make_silent true;
+ (* don't set a too large undo stack because Edit.create allocates an array *)
+ Pfedit.set_undo (Some 5000);
(**)
Coqtop.init_ide ()
@@ -98,7 +100,7 @@ let is_in_loadpath dir =
let is_in_coq_path f =
try
let base = Filename.chop_extension (Filename.basename f) in
- let _ = Library.locate_qualified_library
+ let _ = Library.locate_qualified_library false
(Libnames.make_qualid Names.empty_dirpath
(Names.id_of_string base)) in
prerr_endline (f ^ " is in coq path");
@@ -246,9 +248,9 @@ let rec attribute_of_vernac_command = function
| VernacSolveExistential _ -> [SolveCommand]
(* MMode *)
- | VernacDeclProof -> []
- | VernacReturn -> []
- | VernacProofInstr _ -> []
+ | VernacDeclProof -> [SolveCommand]
+ | VernacReturn -> [SolveCommand]
+ | VernacProofInstr _ -> [SolveCommand]
(* Auxiliary file and library management *)
| VernacRequireFrom _ -> []