emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 3a04e15: Improve documentation of 'emacs-lock-mod


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 3a04e15: Improve documentation of 'emacs-lock-mode'
Date: Sat, 7 Jul 2018 05:51:13 -0400 (EDT)

branch: emacs-26
commit 3a04e151af310ff0a283b1f05315c09baf5d7acf
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Improve documentation of 'emacs-lock-mode'
    
    * lisp/emacs-lock.el (emacs-lock-mode): Mention in the doc string
    the special handling of some major modes due to
    'emacs-lock-unlockable-modes'.
---
 lisp/emacs-lock.el | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lock.el b/lisp/emacs-lock.el
index 0a6fa9e..1c13d0e 100644
--- a/lisp/emacs-lock.el
+++ b/lisp/emacs-lock.el
@@ -94,7 +94,10 @@ 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")
+ 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.")
 (put 'emacs-lock-mode 'permanent-local t)
 
 (defvar-local emacs-lock--old-mode nil
@@ -204,7 +207,10 @@ When called from Elisp code, ARG can be any locking mode:
  kill   -- the buffer cannot be killed, but Emacs can exit as usual
  all    -- the buffer is locked against both actions
 
-Other values are interpreted as usual."
+Other values are interpreted as usual.
+
+See also `emacs-lock-unlockable-modes', which exempts buffers under
+some major modes from being locked under some circumstances."
   :init-value nil
   :lighter (""
             (emacs-lock--try-unlocking " locked:" " Locked:")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]