From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= 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 20:08:06 +0200 Message-ID: <4BDF1106.7060200@swipnet.se> References: <3D94147C-CA80-4DB1-AD11-4707C3077275@swipnet.se> <4BDE87A4.5060701@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 1272911049 23644 80.91.229.12 (3 May 2010 18:24:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 May 2010 18:24:09 +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 20:24:04 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 1O90JG-0007fm-66 for ged-emacs-devel@m.gmane.org; Mon, 03 May 2010 20:24:03 +0200 Original-Received: from localhost ([127.0.0.1]:47578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O90Hy-0003mP-PQ for ged-emacs-devel@m.gmane.org; Mon, 03 May 2010 14:22:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O90Hj-0003ih-4q for emacs-devel@gnu.org; Mon, 03 May 2010 14:22:27 -0400 Original-Received: from [140.186.70.92] (port=46507 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O90HT-0003ND-Cg for emacs-devel@gnu.org; Mon, 03 May 2010 14:22:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O903v-0000rj-OV for emacs-devel@gnu.org; Mon, 03 May 2010 14:08:13 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:59389) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O903v-0000rP-B4 for emacs-devel@gnu.org; Mon, 03 May 2010 14:08:11 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id BADE7CFC3 for ; Mon, 3 May 2010 20:08:09 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiFDAKKt3ktV4S1uPGdsb2JhbACHaZU6DAEBAQE1Lb1WhRIE X-IronPort-AV: E=Sophos;i="4.52,320,1270418400"; d="scan'208";a="514276429" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb3.telenor.se with ESMTP; 03 May 2010 20:08:09 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 5CDDB7FA05A; Mon, 3 May 2010 20:08:08 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 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:124478 Archived-At: Stefan Monnier skrev 2010-05-03 19.43: >> For this bug report, yes. But for the more general session management >> handling, it really is "start where we stopped". > > But that's the whole problem: what do you define as "where we stopped"? > As I said, there are as many current directories as there are buffers. Yes there is, it is what getcwd returns. That is where the process is started. That is the current directory according to the OS. A process can only have one current directory, and Emacs is no different. > >> Who knows what other/future packages save in the current directory? > > There's really no such thing as "Emacs's current directory". > Yes there is, it is what getcwd returns. Anything else is just cosmetics and not the current directory of the Emacs process. >> 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. > > Then desktop should save the default-directory of *scratch* (and > maybe/probably other buffers as well). IIUC you can do that by adding > default-directory to desktop-locals-to-save. > >> That is too simplified, Emacs has more state than just the desktop file. > > But "--chdir" is too simplified, Emacs has many more current directories > than just "the one" ;-) > No, a process can only have one current directory, and so does Emacs, it is what getcwd returns. Jan D.