diff options
| author | Juri Linkov | 2014-02-07 09:58:10 +0200 |
|---|---|---|
| committer | Juri Linkov | 2014-02-07 09:58:10 +0200 |
| commit | c99cf5eec16bb8ff6b139e5987389845c9ae2b31 (patch) | |
| tree | 5164b52fbc54e34f2446c52cd17b0af11e53a4a1 | |
| parent | 7d7a68d860eaf54e81c235952e740a8126c1cff8 (diff) | |
| download | emacs-c99cf5eec16bb8ff6b139e5987389845c9ae2b31.tar.gz emacs-c99cf5eec16bb8ff6b139e5987389845c9ae2b31.zip | |
* lisp/desktop.el (desktop-read): Claim the lock when the owner is not the current process.
Fixes: debbugs:16157
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/desktop.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a86293b6fa2..fd1ad94af29 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2014-02-07 Juri Linkov <juri@jurta.org> | 1 | 2014-02-07 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * desktop.el (desktop-read): Claim the lock when the owner is not | ||
| 4 | the current process. (Bug#16157) | ||
| 5 | |||
| 6 | 2014-02-07 Juri Linkov <juri@jurta.org> | ||
| 7 | |||
| 3 | * desktop.el (desktop-buffers-not-to-save): Change default from nil | 8 | * desktop.el (desktop-buffers-not-to-save): Change default from nil |
| 4 | to "\\` ". (Bug#16651) | 9 | to "\\` ". (Bug#16651) |
| 5 | 10 | ||
diff --git a/lisp/desktop.el b/lisp/desktop.el index be348b60a99..3380e39445b 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -1108,7 +1108,7 @@ Using it may cause conflicts. Use it anyway? " owner))))) | |||
| 1108 | (setq desktop-file-modtime (nth 5 (file-attributes (desktop-full-file-name)))) | 1108 | (setq desktop-file-modtime (nth 5 (file-attributes (desktop-full-file-name)))) |
| 1109 | ;; If it wasn't already, mark it as in-use, to bother other | 1109 | ;; If it wasn't already, mark it as in-use, to bother other |
| 1110 | ;; desktop instances. | 1110 | ;; desktop instances. |
| 1111 | (unless owner | 1111 | (unless (eq (emacs-pid) owner) |
| 1112 | (condition-case nil | 1112 | (condition-case nil |
| 1113 | (desktop-claim-lock) | 1113 | (desktop-claim-lock) |
| 1114 | (file-error (message "Couldn't record use of desktop file") | 1114 | (file-error (message "Couldn't record use of desktop file") |