aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lock.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/emacs-lock.el b/lisp/emacs-lock.el
index 0a6fa9e6255..1c13d0ef975 100644
--- a/lisp/emacs-lock.el
+++ b/lisp/emacs-lock.el
@@ -94,7 +94,10 @@ It can be one of the following values:
94 exit -- Emacs cannot exit while the buffer is locked 94 exit -- Emacs cannot exit while the buffer is locked
95 kill -- the buffer cannot be killed, but Emacs can exit as usual 95 kill -- the buffer cannot be killed, but Emacs can exit as usual
96 all -- the buffer is locked against both actions 96 all -- the buffer is locked against both actions
97 nil -- the buffer is not locked") 97 nil -- the buffer is not locked
98
99See also `emacs-lock-unlockable-modes', which exempts buffers under
100some major modes from being locked under some circumstances.")
98(put 'emacs-lock-mode 'permanent-local t) 101(put 'emacs-lock-mode 'permanent-local t)
99 102
100(defvar-local emacs-lock--old-mode nil 103(defvar-local emacs-lock--old-mode nil
@@ -204,7 +207,10 @@ When called from Elisp code, ARG can be any locking mode:
204 kill -- the buffer cannot be killed, but Emacs can exit as usual 207 kill -- the buffer cannot be killed, but Emacs can exit as usual
205 all -- the buffer is locked against both actions 208 all -- the buffer is locked against both actions
206 209
207Other values are interpreted as usual." 210Other values are interpreted as usual.
211
212See also `emacs-lock-unlockable-modes', which exempts buffers under
213some major modes from being locked under some circumstances."
208 :init-value nil 214 :init-value nil
209 :lighter ("" 215 :lighter (""
210 (emacs-lock--try-unlocking " locked:" " Locked:") 216 (emacs-lock--try-unlocking " locked:" " Locked:")