From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5552: 23.1; desktop seems not quite to understand session management Date: Mon, 15 Feb 2010 09:11:46 -0500 Message-ID: References: <87bpfyqpai.fsf@canta.dyndns.org> <4B727787.5080106@swipnet.se> <87eiktqvl4.fsf@stupidchicken.com> <4B78FC33.1010701@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266243772 13291 80.91.229.12 (15 Feb 2010 14:22:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2010 14:22:52 +0000 (UTC) Cc: Chong Yidong , 5552@debbugs.gnu.org, rrt@sc3d.org To: "Jan D." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 15:22:49 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Nh1qZ-0005Yg-3H for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2010 15:22:47 +0100 Original-Received: from localhost ([127.0.0.1]:49811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nh1qY-00047P-5i for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2010 09:22:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nh1qU-00047K-7G for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:22:42 -0500 Original-Received: from [140.186.70.92] (port=59605 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nh1qT-00046x-LF for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:22:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nh1qS-0000tI-Ks for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:22:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49709) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nh1qS-0000tE-JE for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:22:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nh1h8-0003FD-AS; Mon, 15 Feb 2010 09:13:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2010 14:13:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5552 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5552-submit@debbugs.gnu.org id=B5552.126624312612438 (code B ref 5552); Mon, 15 Feb 2010 14:13:02 +0000 Original-Received: (at 5552) by debbugs.gnu.org; 15 Feb 2010 14:12:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nh1gE-0003EZ-3h for submit@debbugs.gnu.org; Mon, 15 Feb 2010 09:12:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nh1g0-0003E9-Fr for 5552@debbugs.gnu.org; Mon, 15 Feb 2010 09:12:04 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAMLkeEtFpaHD/2dsb2JhbACbG3W8EYRbBIMUgnqEaA X-IronPort-AV: E=Sophos;i="4.49,476,1262581200"; d="scan'208";a="56062037" Original-Received: from 69-165-161-195.dsl.teksavvy.com (HELO pastel.home) ([69.165.161.195]) by ironport2-out.pppoe.ca with ESMTP; 15 Feb 2010 09:11:47 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5D28F80E3; Mon, 15 Feb 2010 09:11:46 -0500 (EST) In-Reply-To: <4B78FC33.1010701@swipnet.se> (Jan D.'s message of "Mon, 15 Feb 2010 08:48:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 15 Feb 2010 09:13:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35125 Archived-At: >> There was a related thread about this a year ago, regarding how Emacs >> responds to SIGTERM by calling shut_down_emacs rather than kill-emacs: >> http://lists.gnu.org/archive/html/emacs-devel/2009-01/msg00530.html >> The thread did not have a clear conclusion, but I'm in favor of changing >> things to run kill-emacs in such situations. But I think this is best >> done after the release, unless someone can come up with a very >> convincing argument otherwise. > Then we need to add some parameter or other mean to tell functions in > kill-emacs-hook that is it not OK to interact with the user. This is the > case if the X server closes connection in case of a logout. Desktop.el > might in some situations try to ask the user if a desktop file shall > be used. Or alternatively use a new hook instead (call it `emacs-exit-hook' maybe), i.e. pass that parameter via the control flow rather than the data flow. Stefan