diff options
author | Stephane Glondu <steph@glondu.net> | 2008-08-08 13:18:42 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2008-08-08 13:18:42 +0200 |
commit | 870075f34dd9fa5792bfbf413afd3b96f17e76a0 (patch) | |
tree | 0c647056de1832cf1dba5ba58758b9121418e4be /ide/coq.ml | |
parent | a0cfa4f118023d35b767a999d5a2ac4b082857b4 (diff) |
Imported Upstream version 8.2~beta4+dfsgupstream/8.2.beta4+dfsg
Diffstat (limited to 'ide/coq.ml')
-rw-r--r-- | ide/coq.ml | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 _ -> [] |