Variable: emacs-lock-mode
emacs-lock-mode is a buffer-local variable defined in
emacs-lock.el.gz.
Documentation
If non-nil, the current buffer is locked.
It can be one of the following values:
exit -- Emacs cannot exit while the buffer is locked
kill -- the buffer cannot be killed, but Emacs can exit as usual
all -- the buffer is locked against both actions
nil -- the buffer is not locked
See also emacs-lock-unlockable-modes, which exempts buffers under
some major modes from being locked under some circumstances.
Probably introduced at or before Emacs version 24.1.
Key Bindings
Aliases
emacs-lock-from-exiting (obsolete since 24.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lock.el.gz
(defvar-local emacs-lock-mode nil
"If non-nil, the current buffer is locked.
It can be one of the following values:
exit -- Emacs cannot exit while the buffer is locked
kill -- the buffer cannot be killed, but Emacs can exit as usual
all -- the buffer is locked against both actions
nil -- the buffer is not locked
See also `emacs-lock-unlockable-modes', which exempts buffers under
some major modes from being locked under some circumstances.")