summaryrefslogtreecommitdiff
path: root/lisp/emacs-lock.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2011-07-05 17:09:19 +0200
committerJuanma Barranquero <lekktu@gmail.com>2011-07-05 17:09:19 +0200
commitb27640fef2c099a5c2191ee6ada5d29737faa68a (patch)
treefc934ca1317598f9954f613906bf45c5ecfc4b3c /lisp/emacs-lock.el
parentbad327838e4dc10e22960faa0e9d830a5f8242f9 (diff)
downloademacs-b27640fef2c099a5c2191ee6ada5d29737faa68a.tar.gz
* emacs-lock.el (emacs-lock-mode): Fix typo in variable name.
Fix check of `emacs-lock-unlockable-modes'. Coerce true values of `emacs-lock--try-unlocking' to t.
Diffstat (limited to 'lisp/emacs-lock.el')
-rw-r--r--lisp/emacs-lock.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/emacs-lock.el b/lisp/emacs-lock.el
index 7cf0f337705..18411f7d2ef 100644
--- a/lisp/emacs-lock.el
+++ b/lisp/emacs-lock.el
@@ -195,7 +195,7 @@ Other values are interpreted as usual."
:init-value nil
:lighter (""
(emacs-lock--try-unlocking " locked:" " Locked:")
- (:eval (symbol-name emacs-lock-model)))
+ (:eval (symbol-name emacs-lock-mode)))
:group 'emacs-lock
:variable (emacs-lock-mode .
(lambda (mode)
@@ -203,9 +203,10 @@ Other values are interpreted as usual."
(when emacs-lock-mode
(setq emacs-lock--old-mode emacs-lock-mode)
(setq emacs-lock--try-unlocking
- (or (and (eq emacs-lock-unlockable-modes t)
- (emacs-lock-live-process-p (current-buffer)))
- (assq major-mode emacs-lock-unlockable-modes)))))
+ (and (if (eq emacs-lock-unlockable-modes t)
+ (emacs-lock-live-process-p (current-buffer))
+ (assq major-mode emacs-lock-unlockable-modes))
+ t))))
(unless noninteractive
(add-hook 'kill-buffer-query-functions 'emacs-lock--kill-buffer-query-functions)