X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FmatitaScript.ml;h=1a128fb1c753bfa58cd30c1631997e0742614b41;hb=5aa1f1918c39c0d4130574927fa0f870e613cdea;hp=23de391c6ed37e486d1b0324f429325a41d98af4;hpb=afea2be14c1c197e0804e8607fc6dcc49ce46955;p=helm.git diff --git a/matita/matitaScript.ml b/matita/matitaScript.ml index 23de391c6..1a128fb1c 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 (_,style,suri,prefix) -> let dbd = LibraryDb.instance () in let uris = let sql_pat = @@ -328,7 +328,7 @@ prerr_endline "Fine sorting"; (fun uri -> prerr_endline ("Stampo " ^ UriManager.string_of_uri uri); try - ObjPp.obj_to_string 80 + ObjPp.obj_to_string 78 style prefix (* FG: mi pare meglio 78 *) (fst (CicEnvironment.get_obj CicUniv.empty_ugraph uri)) with _ (* BRRRRRRRRR *) -> "ERRORE IN STAMPA DI " ^ UriManager.string_of_uri uri @@ -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"]