can-delete? (augmentable only) in text%

Called before a range is deleted from the editor. If the return value is #f, then the delete will be aborted.

The editor is internally locked for writing during a call to this method (see also Locks). Use after-delete to modify the editor, if necessary.

See also on-delete, after-delete, and on-edit-sequence.