do-edit-operation in editor<%>
Performs a generic edit command.
(-> voidsendan-editordo-edit-operationoprecursive?time)
op: symbol in'(undo redo clear cut copy paste kill select-all insert-text-box insert-pasteboard-box insert-image)
recursive?=#t: boolean
time=0: exact integerThe
opargument must be a valid edit command, one of:'undo-- undoes the last operation'redo-- undoes the last undo'clear-- deletes the current selection'cut-- cuts'copy-- copies'paste-- pastes'kill-- cuts to the end of the current line, or cuts a newline if there is only whitespace between the selection and end of line'select-all-- selects everything in the editor'insert-text-box-- inserts a text editor as an item in this editor; see alsoon-new-box.'insert-pasteboard-box-- inserts a pasteboard editor as an item in this editor; see alsoon-new-box.'insert-image-- gets a filename from the user and inserts the image as an item in this editor; see alsoon-new-image-snip.
If
recursive?is not#f, then the command is passed on to any active snips of this editor (i.e., snips which own the caret).See Cut and Paste for a discussion of the
timeargument. Iftimeis outside the platform-specific range of times, anexn:fail:contractexception is raised.