X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2FmatitaScript.ml;h=d243ebb2ead2ad2c5f65708646cf25c02137e363;hb=2e2ce89ad33092676c91fc65960614dc1bcc5bb6;hp=322fcbf41c405f102d706bf36b2134eb070aad1e;hpb=cd22ff58b75dfcdc003c0c3948a9a96dfec5d185;p=helm.git diff --git a/matita/matitaScript.ml b/matita/matitaScript.ml index 322fcbf41..d243ebb2e 100644 --- a/matita/matitaScript.ml +++ b/matita/matitaScript.ml @@ -417,7 +417,7 @@ class script ~(source_view: GSourceView.source_view) () = let buffer = source_view#buffer in let source_buffer = source_view#source_buffer in -let initial_statuses = +let initial_statuses () = (* these include_paths are used only to load the initial notation *) let include_paths = Helm_registry.get_list Helm_registry.string "matita.includes" in @@ -458,7 +458,7 @@ object (self) val mutable statements = [] (** executed statements *) - val mutable history = [ initial_statuses ] + val mutable history = [ initial_statuses () ] (** list of states before having executed statements. Head element of this * list is the current state, last element is the state at the beginning of * the script. @@ -648,7 +648,7 @@ object (self) method private reset_buffer = statements <- []; - history <- [ initial_statuses ]; + history <- [ initial_statuses () ]; userGoal <- None; self#notify; buffer#remove_tag locked_tag ~start:buffer#start_iter ~stop:buffer#end_iter; @@ -803,6 +803,7 @@ object (self) try is_there_only_comments self#lexicon_status s with + | HExtlib.Localized _ | CicNotationParser.Parse_error _ -> false | Margin | End_of_file -> true