diff options
| author | Juanma Barranquero | 2011-07-05 17:09:19 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-07-05 17:09:19 +0200 |
| commit | b27640fef2c099a5c2191ee6ada5d29737faa68a (patch) | |
| tree | fc934ca1317598f9954f613906bf45c5ecfc4b3c | |
| parent | bad327838e4dc10e22960faa0e9d830a5f8242f9 (diff) | |
| download | emacs-b27640fef2c099a5c2191ee6ada5d29737faa68a.tar.gz emacs-b27640fef2c099a5c2191ee6ada5d29737faa68a.zip | |
* 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.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lock.el | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d6455a9e6f2..3214ed28826 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-07-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * emacs-lock.el (emacs-lock-mode): Fix typo in variable name. | ||
| 4 | Fix check of `emacs-lock-unlockable-modes'. | ||
| 5 | Coerce true values of `emacs-lock--try-unlocking' to t. | ||
| 6 | |||
| 1 | 2011-07-05 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2011-07-05 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * font-lock.el (font-lock-builtin-face): Change from Orchid to | 9 | * font-lock.el (font-lock-builtin-face): Change from Orchid to |
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." | |||
| 195 | :init-value nil | 195 | :init-value nil |
| 196 | :lighter ("" | 196 | :lighter ("" |
| 197 | (emacs-lock--try-unlocking " locked:" " Locked:") | 197 | (emacs-lock--try-unlocking " locked:" " Locked:") |
| 198 | (:eval (symbol-name emacs-lock-model))) | 198 | (:eval (symbol-name emacs-lock-mode))) |
| 199 | :group 'emacs-lock | 199 | :group 'emacs-lock |
| 200 | :variable (emacs-lock-mode . | 200 | :variable (emacs-lock-mode . |
| 201 | (lambda (mode) | 201 | (lambda (mode) |
| @@ -203,9 +203,10 @@ Other values are interpreted as usual." | |||
| 203 | (when emacs-lock-mode | 203 | (when emacs-lock-mode |
| 204 | (setq emacs-lock--old-mode emacs-lock-mode) | 204 | (setq emacs-lock--old-mode emacs-lock-mode) |
| 205 | (setq emacs-lock--try-unlocking | 205 | (setq emacs-lock--try-unlocking |
| 206 | (or (and (eq emacs-lock-unlockable-modes t) | 206 | (and (if (eq emacs-lock-unlockable-modes t) |
| 207 | (emacs-lock-live-process-p (current-buffer))) | 207 | (emacs-lock-live-process-p (current-buffer)) |
| 208 | (assq major-mode emacs-lock-unlockable-modes))))) | 208 | (assq major-mode emacs-lock-unlockable-modes)) |
| 209 | t)))) | ||
| 209 | 210 | ||
| 210 | (unless noninteractive | 211 | (unless noninteractive |
| 211 | (add-hook 'kill-buffer-query-functions 'emacs-lock--kill-buffer-query-functions) | 212 | (add-hook 'kill-buffer-query-functions 'emacs-lock--kill-buffer-query-functions) |