From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero 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, 8 Feb 2014 21:29:06 +0100 Message-ID: References: <83eh3eyjvs.fsf@gnu.org> <87iosqsntr.fsf@mail.jurta.org> <87a9e1q5h5.fsf@mail.jurta.org> <87bnyhops2.fsf@mail.jurta.org> <87mwi1l7sf.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1391891387 12324 80.91.229.3 (8 Feb 2014 20:29:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 20:29:47 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 08 21:29:55 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 1WCEXA-0004W8-EJ for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 21:29:52 +0100 Original-Received: from localhost ([::1]:47926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCEX9-0003kg-Id for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 15:29:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCEX7-0003iz-8h for emacs-devel@gnu.org; Sat, 08 Feb 2014 15:29:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCEX6-0002t1-IS for emacs-devel@gnu.org; Sat, 08 Feb 2014 15:29:49 -0500 Original-Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:52751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCEX5-0002sk-6v; Sat, 08 Feb 2014 15:29:47 -0500 Original-Received: by mail-yh0-f51.google.com with SMTP id t59so3813276yho.38 for ; Sat, 08 Feb 2014 12:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qhCZWS+Rl9XudFHgqh6HUaE+YI547rzSY29OPiMgNyk=; b=FbxWj9z1toVdY5VHGxOFDsnum3ALeJlyc9cN1i7zdS+S9xiW/x3TfCXjiVRIHqHEJU sH8rIWMSomwRW02TUy9lNe9DZDAU96WNcu9p0U8H2vIV6NqBeOXHW5S5C8hABV4fDFjv bIq+BXyM2jzANDQuTY0vqgxi/MjO6aTQeoLf0HtLL3Gf62uG6uhEYJYCbyNY7w+toywe UE5K6aVTPKeLYZpGii7OQBvBluqPsEBRk3lNgRsN3GvXHLC3D3ocT/XNbE+aVNjwZEqC 9hkJ9rRjA1JWPboF0nz9NMzg6BdBSLfRqG+byHF+Dk4MaqVaF/HylkuvMEqc5WrfmY9Q G7+A== X-Received: by 10.236.165.74 with SMTP id d50mr18300297yhl.7.1391891386190; Sat, 08 Feb 2014 12:29:46 -0800 (PST) Original-Received: by 10.170.84.65 with HTTP; Sat, 8 Feb 2014 12:29:06 -0800 (PST) In-Reply-To: <87mwi1l7sf.fsf@mail.jurta.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::233 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:169497 Archived-At: On Sat, Feb 8, 2014 at 8:32 PM, Juri Linkov wrote: > Then instead of asking a question we could add two new values > to `desktop-load-locked-desktop' > > ask-and-lock -- ask the user and lock the desktop. > load-and-lock -- load and lock anyway. > > with the default to `ask-and-lock'. Whereas the existing > > t -- load anyway. > ask -- ask the user. > > will load without locking. Seems OK. > I guess your code to detect a running Emacs instance is not too reliable > to include to desktop.el? Alas, no. It's Windows-specific, and depends on the fact that I know I won't have a lock from a remote Emacs instance, and that all my instances are launched from executables called emacs.exe. J