aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorMaxime Dénès2017-10-04 10:13:56 +0200
committerMaxime Dénès2017-10-04 10:13:56 +0200
commitcf39d22df11bc33d393db42dfd4b5b0a2c8ded16 (patch)
tree954aad51e5b2190f9d3453aeebfbc85a2ea7da0c /toplevel
parentd23df0ac40122ce2fb42683fce00f60fb85eaff9 (diff)
parentec59306708f9aec04ab82a7e03807017e1924507 (diff)
Merge PR #1096: [stm] Warn about costly Undo operations in batch mode [BZ#5677]
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/vernac.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/toplevel/vernac.ml b/toplevel/vernac.ml
index 4b97ee0dde..b0f021cdcd 100644
--- a/toplevel/vernac.ml
+++ b/toplevel/vernac.ml
@@ -132,10 +132,16 @@ let rec interp_vernac sid (loc,com) =
highly dynamic and depends on the structure of the
document. Hopefully this is fixed when VtBack can be removed
and Undo etc... are just interpreted regularly. *)
+
+ (* XXX: The classifier can emit warnings so we need to guard
+ against that... *)
+ let wflags = CWarnings.get_flags () in
+ CWarnings.set_flags "none";
let is_proof_step = match fst (Vernac_classifier.classify_vernac v) with
| VtProofStep _ | VtBack (_, _) | VtStartProof _ -> true
| _ -> false
in
+ CWarnings.set_flags wflags;
let nsid, ntip = Stm.add ~ontop:sid (not !Flags.quiet) (loc,v) in