From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Jan_Dj=C3=A4rv?= 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: Sun, 2 May 2010 22:53:00 +0200 Message-ID: <3D94147C-CA80-4DB1-AD11-4707C3077275@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (iPhone Mail 7E18) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272833643 6599 80.91.229.12 (2 May 2010 20:54:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 May 2010 20:54:03 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 02 22:54:02 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 1O8gAr-0003vL-0u for ged-emacs-devel@m.gmane.org; Sun, 02 May 2010 22:54:01 +0200 Original-Received: from localhost ([127.0.0.1]:47204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8gAq-0001WX-1p for ged-emacs-devel@m.gmane.org; Sun, 02 May 2010 16:54:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8gAl-0001WM-0w for emacs-devel@gnu.org; Sun, 02 May 2010 16:53:55 -0400 Original-Received: from [140.186.70.92] (port=58417 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8gAj-0001W7-RH for emacs-devel@gnu.org; Sun, 02 May 2010 16:53:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8gAi-0006cJ-4l for emacs-devel@gnu.org; Sun, 02 May 2010 16:53:53 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:50485) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8gAh-0006bz-Vh for emacs-devel@gnu.org; Sun, 02 May 2010 16:53:52 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 7C4AFE887C for ; Sun, 2 May 2010 22:53:03 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArNAAM6C3UtV4S1uPGdsb2JhbACHaZU6DAEBAQE1LbgEhRIE X-IronPort-AV: E=Sophos;i="4.52,314,1270418400"; d="scan'208";a="513971408" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb3.telenor.se with ESMTP; 02 May 2010 22:53:03 +0200 Original-Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id 853CD7FA05A; Sun, 2 May 2010 22:53:02 +0200 (CEST) In-Reply-To: X-Mailer: iPhone Mail (7E18) 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:124445 Archived-At: 2 maj 2010 kl. 21.24 skrev Stefan Monnier : >> Run kill-emacs when exiting for display closed or SIGTERM/HUP. >> * xsmfns.c (CHDIR_OPT): New define. >> (smc_save_yourself_CB): Add CHDIR_OPT to options to use when >> restarting emacs. > > Not sure what's the relationship between the kill-emacs part and the > chdir part. But I'm really wondering what this chdir thingy is > good for. I mean: the current directory of Emacs is something rather > vague: Emacs has as many current directories as it has buffers, do > does > it just refer to the default-directory of *scratch* and *Messages*? > If so, why/when is that so important as to justify a startup option? > In some older Gnome versions, you could save current ditectory in the session manager and Emacs would then restart in that directory. 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 making sure the desktop is saved wont solve the bug unless it is also read back properly. Jan D.