X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fmatita%2FmatitaScript.ml;h=ad4592a67ec028c545afb948c88e5b51a949464a;hb=5022202a659044d981833ba8665424a52684b07f;hp=c2b9a7e93615d6120784a0f1dfdf34bf30fdfe0b;hpb=c91c06bd374f5edbed5c562d7fb1858058307a7a;p=helm.git diff --git a/helm/matita/matitaScript.ml b/helm/matita/matitaScript.ml index c2b9a7e93..ad4592a67 100644 --- a/helm/matita/matitaScript.ml +++ b/helm/matita/matitaScript.ml @@ -337,7 +337,7 @@ let eval_executable guistuff status user_goal parsed_text script ex = (match ML.baseuri_of_baseuri_decl (TA.Executable (loc,ex)) with | None -> () | Some u -> - if not (MatitacleanLib.is_empty u) then + if not (ML.is_empty u) then match guistuff.ask_confirmation ~title:"Baseuri redefinition" @@ -417,9 +417,7 @@ object (self) (fun _ -> if buffer#modified then set_star self#ppFilename true else - set_star self#ppFilename false)); - self#reset (); - self#template () + set_star self#ppFilename false)) val mutable statements = []; (** executed statements *) val mutable history = [ init ]; @@ -436,6 +434,8 @@ object (self) buffer#create_mark ~name:"locked" ~left_gravity:true buffer#start_iter val locked_tag = buffer#create_tag [`BACKGROUND "lightblue"; `EDITABLE false] + method locked_mark = locked_mark + (* history can't be empty, the invariant above grant that it contains at * least the init status *) method status = match history with hd :: _ -> hd | _ -> assert false