set-modified in editor:backup-autosave-mixin
Sets the modified state of the editor. Usually, the state is changed automatically after an insertion, deletion, or style change by calling this method. (This method is also called when the modification state changes through any method.) This method is usually not called when the state of the flag is not changing.
See also
is-modified? and
on-snip-modified.
( -> void
send an-editor:backup-autosave-mixin set-modified modified?)
modified? : boolean
Sets the modification state to modified?. If modified? is
true, then an internal modify-counter is set to 1.
If modified? is #f and the editor's undo or redo stack
contains a system-created undoer that resets the modified state
(because the preceding undo or redo action puts the editor back to a
state where the modification state was #f), the undoer is
disabled.
Regardless of the value of modified?, the editor's adminstrator's
modified method is called.
Finally, if modified? is #f and the internal
modify-counter is set to 0, then the
set-unmodified method is called on every snip within the editor.
If the file is no longer modified, this method deletes the autosave file. If it is, it updates a flag to indicate that the autosave file is out of date.