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: Fri, 07 Feb 2014 21:42:00 +0200 Organization: JURTA Message-ID: <87iosqsntr.fsf@mail.jurta.org> References: <83eh3eyjvs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391803147 3459 80.91.229.3 (7 Feb 2014 19:59:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 19:59:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 07 20:59:14 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 1WBrZy-0003jS-5M for ged-emacs-devel@m.gmane.org; Fri, 07 Feb 2014 20:59:14 +0100 Original-Received: from localhost ([::1]:43230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBrZx-0004RK-RT for ged-emacs-devel@m.gmane.org; Fri, 07 Feb 2014 14:59:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBrYl-0003pv-Ov for emacs-devel@gnu.org; Fri, 07 Feb 2014 14:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBrYf-0007Cj-Ky for emacs-devel@gnu.org; Fri, 07 Feb 2014 14:57:59 -0500 Original-Received: from [69.163.184.122] (port=53756 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBrYZ-0007Bk-4Y; Fri, 07 Feb 2014 14:57:47 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 95FC2300B55115; Fri, 7 Feb 2014 11:57:44 -0800 (PST) In-Reply-To: <83eh3eyjvs.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Feb 2014 18:20:39 +0200") 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:169470 Archived-At: >> + * 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?"