|
From: | Juri Linkov |
Subject: | Re: [Emacs-diffs] trunk r116304: * lisp/desktop.el (desktop-read): Claim the lock when the owner is not the current process. |
Date: | Fri, 07 Feb 2014 21:42:00 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
>> + * desktop.el (desktop-read): Claim the lock when the owner is not >> + the current process. (Bug#16157) > > What happens if an Emacs session that locked the desktop file is still > alive? The one that comes last wins. The last session will do auto-saving, the previous won't. At least, there should be no conflict of both sessions trying to auto-save to the same file, because auto-saving checks the ownership. The conflict might occur when during exiting both sessions will try writing to the same file. I see nothing in `desktop-kill' that would prevent saving to a non-locked desktop, except the question "Save desktop?"
[Prev in Thread] | Current Thread | [Next in Thread] |