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: Tue, 04 May 2010 20:50:26 +0200 Message-ID: <4BE06C72.60003@swipnet.se> References: <3D94147C-CA80-4DB1-AD11-4707C3077275@swipnet.se> <4BDE87A4.5060701@swipnet.se> <4BDF1106.7060200@swipnet.se> <87633474hd.fsf@uwakimon.sk.tsukuba.ac.jp> <4BDFD57A.3050808@swipnet.se> <874oinppgn.fsf@mail.jurta.org> 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 1273045885 22362 80.91.229.12 (5 May 2010 07:51:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 07:51:25 +0000 (UTC) Cc: "Stephen J. Turnbull" , Stefan Monnier , "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 05 09:51:23 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 1O9ZO6-0000Ln-Os for ged-emacs-devel@m.gmane.org; Wed, 05 May 2010 09:51:23 +0200 Original-Received: from localhost ([127.0.0.1]:49735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9ZO5-0002K6-TQ for ged-emacs-devel@m.gmane.org; Wed, 05 May 2010 03:51:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9NCT-0002GD-Pu for emacs-devel@gnu.org; Tue, 04 May 2010 14:50:33 -0400 Original-Received: from [140.186.70.92] (port=33762 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9NCS-0002Et-2J for emacs-devel@gnu.org; Tue, 04 May 2010 14:50:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9NCQ-0007Et-6m for emacs-devel@gnu.org; Tue, 04 May 2010 14:50:31 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:45302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9NCP-0007Eg-QQ for emacs-devel@gnu.org; Tue, 04 May 2010 14:50:30 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 1F098C339 for ; Tue, 4 May 2010 20:50:27 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArY6ADcJ4EtV4S1uPGdsb2JhbACHaZVGDAEBAQE1Lb5UhRME X-IronPort-AV: E=Sophos;i="4.52,328,1270418400"; d="scan'208";a="70555063" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 04 May 2010 20:50:27 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 04AD97FA05A; Tue, 4 May 2010 20:50:27 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 In-Reply-To: <874oinppgn.fsf@mail.jurta.org> 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:124524 Archived-At: 2010-05-04 18:45, Juri Linkov skrev: > * startup.el (fancy-startup-screen, normal-splash-screen): > Set default-directory to command-line-default-directory. > > Now the question is where `command-line-default-directory' > should get its value. It's docstring says: > > (defvar command-line-default-directory nil > "Default directory to use for command line arguments. > This is normally copied from `default-directory' when Emacs starts.") Isn't this circular? Who gets its value first? And remember, when starting from the session manager, no splash screen is shown, so the code that the Changelog entry above refers to is never run. > > However, a new command line arg --chdir seems unnecessary. When the > user wants `command-line-default-directory' to be another directory, > then the user can cd to this directory before running Emacs. The user can not cd if Emacs is started from the session manager. > > If this is necessary for the session management, it's another problem. > There is a special arg --smid that could be used. I don't follow. --smid is strictly for session manager use. If you mean Emacs could save command-line-default-directory when it is terminated by the session manager, that is doable. > >> Desktop file isn't loaded. > > I think --smid should restore the same desktop file that was saved > in the previous session. And also restore the old value of > `command-line-default-directory'. > And if no session file was used, and there is one in the directory Emacs is restarted from? Jan D.