From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" 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:49:43 +0900 Message-ID: <87bpcv7up4.fsf@uwakimon.sk.tsukuba.ac.jp> 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 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272974087 31319 80.91.229.12 (4 May 2010 11:54:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 11:54:47 +0000 (UTC) Cc: Stefan Monnier , "emacs-devel@gnu.org" To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 04 13:54:45 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 1O9Gi2-0003WS-PQ for ged-emacs-devel@m.gmane.org; Tue, 04 May 2010 13:54:43 +0200 Original-Received: from localhost ([127.0.0.1]:51884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Gi1-0004ja-Vl for ged-emacs-devel@m.gmane.org; Tue, 04 May 2010 07:54:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9GeA-0003cu-4f for emacs-devel@gnu.org; Tue, 04 May 2010 07:50:42 -0400 Original-Received: from [140.186.70.92] (port=39825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Ge8-0003cc-Nf for emacs-devel@gnu.org; Tue, 04 May 2010 07:50:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9Ge6-0006d8-PW for emacs-devel@gnu.org; Tue, 04 May 2010 07:50:40 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:60924) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9Ge6-0006bj-Dv for emacs-devel@gnu.org; Tue, 04 May 2010 07:50:38 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 072468211; Tue, 4 May 2010 20:50:35 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 207281A3626; Tue, 4 May 2010 20:49:43 +0900 (JST) In-Reply-To: <4BDFD3CE.4030700@swipnet.se> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" a03421eb562b XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:124501 Archived-At: Jan Dj=E4rv writes: > So what? Session management doesn't care what the processes do > internally. No, but users do. And users don't care what Emacs's actual cwd is (except that I am daily thankful that Emacs doesn't chdir because that means that Emacs's cwd is never on the USB key that I want to umount!) > It is where Emacs was started, it is where Emacs was stopped, and > thus where Emacs should be restarted. Where else should Emacs be > restarted? For desktop.el users, it should be restarted in desktop-dirname* as of the time Emacs stops, because otherwise desktop won't find the right desktop file. *I suspect this means not chdir(DESKTOP-DIRNAME) in C, but rather (progn (switch-to-buffer "*scratch*") (cd DESKTOP-DIRNAME)), before invoking desktop-read.