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: Wed, 05 May 2010 18:18:07 +0200 Message-ID: <4BE19A3F.2050202@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> <87d3xb7vge.fsf@uwakimon.sk.tsukuba.ac.jp> <4BE0184C.1090902@swipnet.se> <4BE02EA7.2070102@swipnet.se> <4BE11C88.2080705@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 1273092982 17811 80.91.229.12 (5 May 2010 20:56:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 20:56:22 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 05 22:56:20 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 1O9ldh-0002S0-13 for ged-emacs-devel@m.gmane.org; Wed, 05 May 2010 22:56:17 +0200 Original-Received: from localhost ([127.0.0.1]:39876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9ldg-0003Zo-DL for ged-emacs-devel@m.gmane.org; Wed, 05 May 2010 16:56:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9hVe-0002Ut-Dd for emacs-devel@gnu.org; Wed, 05 May 2010 12:31:42 -0400 Original-Received: from [140.186.70.92] (port=43977 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9hVW-0001we-BK for emacs-devel@gnu.org; Wed, 05 May 2010 12:31:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9hKX-0004Pw-Lq for emacs-devel@gnu.org; Wed, 05 May 2010 12:20:15 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:58301) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9hKX-0004Oz-BD for emacs-devel@gnu.org; Wed, 05 May 2010 12:20:13 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id CC21BC9FA for ; Wed, 5 May 2010 18:18:13 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArJIAFw34UtV4S1uPGdsb2JhbACHaZVcDAEBAQE1Lb5EhRME X-IronPort-AV: E=Sophos;i="4.52,335,1270418400"; d="scan'208";a="70969485" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 05 May 2010 18:18:08 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 88BB07FA05A; Wed, 5 May 2010 18:18:07 +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:124549 Archived-At: Stefan Monnier skrev 2010-05-05 16.00: >>> BTW, why use --chdir rather than save the default-directories in the >>> session file if you think that it should work even without desktop.el? >> I doesn't work with desktop. desktop adds itself to after-init-hook, and >> that is run before session restore. So desktop will load my desktop in >> $HOME before default-directories are restored. > > I don't understand what you're saying here. For one, I was talking > about the "no desktop" case, I took "even without" to mean "with an without". > and second I don't understand if you're > talking about some accidental problem in the current way desktop works > or a fundamental limitation in the way desktop can work. It is how the current code works. It can be fixed. > >> Ideally we would just load the session specific file on restart, but >> desktop has some cleanups it does in desktop-read after load. > > I don't know what you're talking about. ;; `desktop-create-buffer' puts buffers at end of the buffer list. ;; We want buffers existing prior to evaluating the desktop (and ;; not reused) to be placed at the end of the buffer list, so we ;; move them here. (mapc 'bury-buffer (nreverse (cdr (memq desktop-first-buffer (nreverse (buffer-list)))))) (switch-to-buffer (car (buffer-list))) (run-hooks 'desktop-delay-hook) (setq desktop-delay-hook nil) (run-hooks 'desktop-after-read-hook) Jan D.