]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matitaScript.ml
snapshot for camlp5 v5
[helm.git] / matita / matitaScript.ml
index a007e70237913407bf3fc42e4fdb9444679fcf4a..8ec2a4948bcc7c6bc19608d03f59a1089aa0468f 100644 (file)
@@ -85,7 +85,8 @@ let eval_with_engine guistuff lexicon_status grafite_status user_goal
   let text = skipped_txt ^ nonskipped_txt in
   let prefix_len = MatitaGtkMisc.utf8_string_length skipped_txt in
   let enriched_history_fragment =
-   MatitaEngine.eval_ast ~do_heavy_checks:true
+   MatitaEngine.eval_ast ~do_heavy_checks:(Helm_registry.get_bool
+     "matita.do_heavy_checks")
     lexicon_status grafite_status (text,prefix_len,st)
   in
   let enriched_history_fragment = List.rev enriched_history_fragment in
@@ -488,6 +489,7 @@ let rec eval_macro include_paths (buffer : GText.buffer) guistuff lexicon_status
       let proof_status = proof,user_goal' in
       if rewrite then
         let l = MQ.equations_for_goal ~dbd proof_status in
+        let l = List.filter (fun u -> not (LibraryObjects.in_eq_URIs u)) l in
         let entry = `Whelp (pp_macro (TA.WHint(loc, Cic.Implicit None)), l) in
         guistuff.mathviewer#show_uri_list ~reuse:true ~entry l;
         [], "", parsed_text_length