From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100117: Run kill-emacs when exiting for display closed or SIGTERM/HUP. Date: Mon, 03 May 2010 10:21:56 +0200 Message-ID: <4BDE87A4.5060701@swipnet.se> References: <3D94147C-CA80-4DB1-AD11-4707C3077275@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272874951 12148 80.91.229.12 (3 May 2010 08:22:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 May 2010 08:22:31 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 03 10:22:22 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O8qv0-000452-AC for ged-emacs-devel@m.gmane.org; Mon, 03 May 2010 10:22:22 +0200 Original-Received: from localhost ([127.0.0.1]:58595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8quz-00074D-2k for ged-emacs-devel@m.gmane.org; Mon, 03 May 2010 04:22:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8qus-000748-0W for emacs-devel@gnu.org; Mon, 03 May 2010 04:22:14 -0400 Original-Received: from [140.186.70.92] (port=43811 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8quq-000740-Cv for emacs-devel@gnu.org; Mon, 03 May 2010 04:22:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8quo-0002Nb-Sw for emacs-devel@gnu.org; Mon, 03 May 2010 04:22:12 -0400 Original-Received: from smtprelay-h12.telenor.se ([62.127.194.5]:34281) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8quo-0002NC-Mo for emacs-devel@gnu.org; Mon, 03 May 2010 04:22:10 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h12.telenor.se (Postfix) with ESMTP id 0C262CD9B for ; Mon, 3 May 2010 10:23:10 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArZBAA4k3ktV4S1uPGdsb2JhbACHaZU3DAEBAQE1LblKhRIE X-IronPort-AV: E=Sophos;i="4.52,318,1270418400"; d="scan'208";a="70000246" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 03 May 2010 10:21:58 +0200 Original-Received: from [10.225.40.55] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 024A47FA05A; Mon, 3 May 2010 10:21:57 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124468 Archived-At: On 2010-05-03 02:55, Stefan Monnier wrote: >> But now you can't so Emacs is restarted in a different directory. If you >> are saving different desktops in different directories, restarting Emacs is >> kind of pointless unless you are in the right directory. > > So, IIUC the question is not "Emacs's current directory" but "the > location of the relevant desktop file" (which happens to be currently > found via the current directory), right? For this bug report, yes. But for the more general session management handling, it really is "start where we stopped". Who knows what other/future packages save in the current directory? Relative filenames perhaps? Not to mention the fact that I personally get irritated that C-x C-f from *scratch* starts with the wrong directory in this case. > >> So making sure the desktop is saved wont solve the bug unless it is also >> read back properly. > > I'd be tempted to say that we need a "--desktop FILE" argument, then. > That is too simplified, Emacs has more state than just the desktop file. Jan D.