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: Tue, 04 May 2010 16:42:19 +0200 Message-ID: <4BE0324B.7050103@swipnet.se> References: <3D94147C-CA80-4DB1-AD11-4707C3077275@swipnet.se> <4BDE87A4.5060701@swipnet.se> <4BDF1106.7060200@swipnet.se> <4BDFD3CE.4030700@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 1272984168 9919 80.91.229.12 (4 May 2010 14:42:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 14:42:48 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 04 16:42:46 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 1O9JKb-00076i-0O for ged-emacs-devel@m.gmane.org; Tue, 04 May 2010 16:42:41 +0200 Original-Received: from localhost ([127.0.0.1]:60396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9JKa-00038C-1Q for ged-emacs-devel@m.gmane.org; Tue, 04 May 2010 10:42:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9JKU-00037V-3m for emacs-devel@gnu.org; Tue, 04 May 2010 10:42:34 -0400 Original-Received: from [140.186.70.92] (port=35151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9JKS-00037B-Ri for emacs-devel@gnu.org; Tue, 04 May 2010 10:42:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9JKR-0005rk-DN for emacs-devel@gnu.org; Tue, 04 May 2010 10:42:32 -0400 Original-Received: from smtprelay-h11.telenor.se ([62.127.194.4]:54151) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9JKR-0005rQ-2b for emacs-devel@gnu.org; Tue, 04 May 2010 10:42:31 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h11.telenor.se (Postfix) with ESMTP id 5C913EB065 for ; Tue, 4 May 2010 16:42:26 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArY6AI/P30tV4S1uPGdsb2JhbACHaZVHDAEBAQE1LbxHhRME X-IronPort-AV: E=Sophos;i="4.52,327,1270418400"; d="scan'208";a="70441490" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 04 May 2010 16:42:23 +0200 Original-Received: from [10.225.32.35] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 2E5287FA05A; Tue, 4 May 2010 16:42:21 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; 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:124509 Archived-At: On 2010-05-04 15:48, Stefan Monnier wrote: > > What I say is that users couldn't care less what's the POSIX cwd of > Emacs (as long as it's sane, that is). Oh, they do care where Emacs is started from the command line. How else can they get Emacs to automatically read saved desktops? > > You're suggesting a user-level feature (a new command line arg) based on > some obscure internal detail. That doesn't make much sense unless > there's no other way to get the user-level behavior you want. I didn't think automatic loading of desktops and getting the right default-direcotry was obscure. > > The --chdir is not enough to restore the default-directory of all the > buffers either. So if you want to preserve that info, then add > `default-directory' to desktop-locals-to-save rather than try to get > that same result in a round about way by adding a new vaguely related > feature which doesn't quite do what we want anyway. No, if I have done a cd in some buffer, it is not enough. But for all other uses, it is. How will desktop-locals-to-save restore the default-directory if I don't use desktop.el? > >> Where else should Emacs be restarted? > > Doesn't matter as long as the end result is the one we want. > Usually I'd expect $HOME to be a good choice. And how will Emacs avoid to load my desktop file there if I didn't use it previously? Jan D.