Variable: emacs-lock-default-locking-mode

emacs-lock-default-locking-mode is a customizable variable defined in emacs-lock.el.gz.

Value

all

Documentation

Default locking mode of Emacs-Locked buffers.

Its value is used as the default for emacs-lock-mode(var)/emacs-lock-mode(fun) (which see) the first time that Emacs Lock mode is turned on in a buffer without passing an explicit locking mode.

Possible values are:
 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

This variable was added, or its default value changed, in Emacs 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lock.el.gz
(defcustom emacs-lock-default-locking-mode 'all
  "Default locking mode of Emacs-Locked buffers.

Its value is used as the default for `emacs-lock-mode' (which
see) the first time that Emacs Lock mode is turned on in a buffer
without passing an explicit locking mode.

Possible values are:
 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"
  :type '(choice
          (const :tag "Do not allow Emacs to exit" exit)
          (const :tag "Do not allow killing the buffer" kill)
          (const :tag "Do not allow killing the buffer or exiting Emacs" all)
          (const :tag "Do not lock the buffer" nil))
  :group 'emacs-lock
  :version "24.1")