X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FmatitaWiki.ml;h=c7c5e8838c74defd6a6687aa0b6b938e866a39c5;hb=d5b35580a638f128953dff2fef5e389a589917b5;hp=b8eb18b4694b020399896a26a6f7ff23cf56376c;hpb=fbdd1cc46819d19ed135391a4a954c19d1b92c0c;p=helm.git diff --git a/matita/matitaWiki.ml b/matita/matitaWiki.ml index b8eb18b46..c7c5e8838 100644 --- a/matita/matitaWiki.ml +++ b/matita/matitaWiki.ml @@ -124,6 +124,10 @@ let outer_syntax_parser () = with Failure _ -> assert false ;; + +let include_paths = + lazy (Helm_registry.get_list Helm_registry.string "matita.includes") +;; let rec interactive_loop () = (* every loop is terminated by a terminator both on stdout and stderr *) @@ -166,13 +170,10 @@ let rec interactive_loop () = (List.find (fun (j,_,_) -> j=i) metasenv) ) open_goals)) | _ -> () - in - let include_paths = - Helm_registry.get_list Helm_registry.string "matita.includes" in run_script str (MatitaEngine.eval_from_stream ~first_statement_only:true ~prompt:false - ~include_paths ~watch_statuses) ; + ~include_paths:(Lazy.force include_paths) ~watch_statuses) ; interactive_loop (Some (List.length !lexicon_status)) with | GrafiteEngine.Macro (floc,_) ->