begin-edit-sequence in editor<%>
The
begin-edit-sequence and
end-edit-sequence methods are used to bracket
a set of editor modifications so that the results are all displayed
at once. The commands may be nested arbitrarily deep. Using these
functions can greatly speed up displaying the changes.
When an editor contains other editors, using
begin-edit-sequence and
end-edit-sequence on the main editor brackets some changes to the sub-editors as well,
but it is not as effective when a sub-editor changes as calling
begin-edit-sequence and
end-edit-sequence for the sub-editor.
See also
refresh-delayed? and
in-edit-sequence?, and see Editors and Threads
for information about edit sequences and refresh requests.
(-> voidsendan-editorbegin-edit-sequenceundoable?interrupt-streak?)
undoable?=#t: boolean
interrupt-streak?=#t: booleanIf the
undoable?flag is#f, then the changes made in the sequence cannot be reversed through theundomethod. This flag is only effective for the outermostbegin-edit-sequencewhen nested sequences are used. Note that, for atext%object, the character-inserting version ofinsertinterferes with sequence-based undo groupings.If the
interrupt-streak?flag is#fand the sequence is outermost, then special actions before and after the sequence count as consecutive actions. For example, kills just before and after the sequence are appended in the copy buffer.