lock in editor:info-mixin
Locks or unlocks the editor for modifications. If an editor is locked, all modifications are blocked, not just user modifications.
See also
is-locked?.
This method does not affect internal locks, as discussed in Locks.
( -> void
send an-editor:info-mixin lock lock?)
lock? : boolean
If lock? is #f, the editor is unlocked, otherwise it
is locked.
Uses
run-after-edit-sequence to call
lock-status-changed.