From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116304: * lisp/desktop.el (desktop-read): Claim the lock when the owner is not the current process. Date: Sat, 08 Feb 2014 11:47:41 +0100 Organization: Organization?!? Message-ID: <87d2ixdgoi.fsf@fencepost.gnu.org> References: <83eh3eyjvs.fsf@gnu.org> <87iosqsntr.fsf@mail.jurta.org> <838utmxcre.fsf@gnu.org> <871tzdq5er.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391856483 6704 80.91.229.3 (8 Feb 2014 10:48:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 10:48:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 08 11:48:11 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC5SE-0005yH-Pl for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 11:48:10 +0100 Original-Received: from localhost ([::1]:46067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC5SE-0002RP-Es for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 05:48:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC5S6-0002Qu-MK for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:48:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WC5S0-0008J9-MQ for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:48:02 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:41479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC5S0-0008J5-GV for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:47:56 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WC5Rw-0005go-1U for emacs-devel@gnu.org; Sat, 08 Feb 2014 11:47:52 +0100 Original-Received: from x2f463f3.dyn.telefonica.de ([2.244.99.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Feb 2014 11:47:52 +0100 Original-Received: from dak by x2f463f3.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Feb 2014 11:47:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x2f463f3.dyn.telefonica.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:CD6DugXoTXLATYOsJU/kksdFjAc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169488 Archived-At: Juri Linkov writes: >>> 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?" >> >> That's not what I see today, I think. When I need to test something >> in a fresh session, I sometimes by mistake invoke "emacs" instead of >> "emacs -Q", which reads my ~/.emacs and activates desktop saving. The >> main Emacs session is alive, of course. Then, when I exit, I'm asked >> whether to save desktop and given the opportunity to say NO, > > When you invoke "emacs" instead of "emacs -Q" by mistake, > it warns you about the mistake by asking > > "Warning: desktop file appears to be in use by PID %s. > Using it may cause conflicts. Use it anyway? " > > so you could just say NO. It will still want to _save_ the desktop even if you answer No to loading it. -- David Kastrup