X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FmatitaScript.ml;h=12f26036b4a1c20f829090e6ee254f74ed964f0d;hb=c1f4f612cb879d0295f8ac1491a12acc783194d9;hp=23de391c6ed37e486d1b0324f429325a41d98af4;hpb=afea2be14c1c197e0804e8607fc6dcc49ce46955;p=helm.git diff --git a/matita/matitaScript.ml b/matita/matitaScript.ml index 23de391c6..12f26036b 100644 --- a/matita/matitaScript.ml +++ b/matita/matitaScript.ml @@ -288,7 +288,7 @@ let rec eval_macro include_paths (buffer : GText.buffer) guistuff lexicon_status let t_and_ty = Cic.Cast (term,ty) in guistuff.mathviewer#show_entry (`Cic (t_and_ty,metasenv)); [], "", parsed_text_length - | TA.Inline (_,suri) -> + | TA.Inline (_,suri,prefix) -> let dbd = LibraryDb.instance () in let uris = let sql_pat = @@ -363,6 +363,9 @@ script ex loc | `CANCEL -> raise MatitaTypes.Cancel) | _ -> () end; + ignore (buffer#move_mark (`NAME "beginning_of_statement") + ~where:((buffer#get_iter_at_mark (`NAME "locked"))#forward_chars + (Glib.Utf8.length skipped_txt))) ; eval_with_engine guistuff lexicon_status grafite_status user_goal skipped_txt nonskipped_txt (TA.Executable (loc, ex)) @@ -501,6 +504,9 @@ object (self) (** text mark and tag representing locked part of a script *) val locked_mark = buffer#create_mark ~name:"locked" ~left_gravity:true buffer#start_iter + val beginning_of_statement_mark = + buffer#create_mark ~name:"beginning_of_statement" + ~left_gravity:true buffer#start_iter val locked_tag = buffer#create_tag [`BACKGROUND "lightblue"; `EDITABLE false] val error_tag = buffer#create_tag [`UNDERLINE `SINGLE; `FOREGROUND "red"]