method private ppFilename =
match guistuff.filenamedata with
- | Some f,_ -> Filename.basename f
+ | Some f,_ -> f
| None,_ -> sprintf ".unnamed%d.ma" scriptId
initializer
- ignore(GMain.Timeout.add ~ms:300000
- ~callback:(fun _ -> self#_saveToBackuptFile ();true));
- ignore(buffer#connect#modified_changed
- (fun _ -> if buffer#modified then
- set_star self#ppFilename true
- else
- set_star self#ppFilename false))
+ ignore (GMain.Timeout.add ~ms:300000
+ ~callback:(fun _ -> self#_saveToBackupFile ();true));
+ ignore (buffer#connect#modified_changed
+ (fun _ -> set_star (Filename.basename self#ppFilename) buffer#modified))
val mutable statements = []; (** executed statements *)
val mutable history = [ init ];
close_out oc;
buffer#set_modified false
- method private _saveToBackuptFile () =
+ method private _saveToBackupFile () =
if buffer#modified then
begin
let f = self#ppFilename ^ "~" in
guistuff.filenamedata <-
(None,MatitamakeLib.development_for_dir (Unix.getcwd ()));
buffer#set_modified false;
- set_star self#ppFilename false
+ set_star (Filename.basename self#ppFilename) false
method goto (pos: [`Top | `Bottom | `Cursor]) () =
let old_locked_mark =