From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov 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 12:11:18 +0200 Organization: JURTA Message-ID: <87a9e1q5h5.fsf@mail.jurta.org> References: <83eh3eyjvs.fsf@gnu.org> <87iosqsntr.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391854622 20693 80.91.229.3 (8 Feb 2014 10:17:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 10:17:02 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 08 11:17:09 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 1WC4yD-0006RZ-J6 for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 11:17:09 +0100 Original-Received: from localhost ([::1]:45990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC4yD-0002Fd-57 for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 05:17:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC4y5-0002FK-Kn for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WC4xz-0008T5-M3 for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:17:01 -0500 Original-Received: from [69.163.184.122] (port=43857 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC4xs-0008Ra-8z; Sat, 08 Feb 2014 05:16:48 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 96370301DB40E4; Sat, 8 Feb 2014 02:16:46 -0800 (PST) In-Reply-To: (Juanma Barranquero's message of "Fri, 7 Feb 2014 21:25:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.184.122 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:169483 Archived-At: >> The one that comes last wins. > > Why is that better? I often start a second Emacs instance, and in > almost all cases I want the first one to keep the desktop. > > What problem is that trying to fix, and why isn't > desktop-load-locked-desktop enough? The problem was that when a session crashes, all subsequent sessions can't auto-save the desktop since they didn't take the lock from the crashed session.