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 daemon doesn't terminate on SIGTERM any more Date: Sun, 24 Oct 2010 10:48:56 +0200 Message-ID: <4CC3F2F8.5080406@swipnet.se> References: <19649.19677.433824.461239@a1i15.kph.uni-mainz.de> <19650.5497.137779.175728@a1i15.kph.uni-mainz.de> <4CC2A3DB.2090904@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: quoted-printable X-Trace: dough.gmane.org 1287910153 4243 80.91.229.12 (24 Oct 2010 08:49:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Oct 2010 08:49:13 +0000 (UTC) Cc: Ulrich Mueller , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 24 10:49:11 2010 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 1P9wGL-0006DA-2F for ged-emacs-devel@m.gmane.org; Sun, 24 Oct 2010 10:49:09 +0200 Original-Received: from localhost ([127.0.0.1]:48321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9wGK-0003S6-IW for ged-emacs-devel@m.gmane.org; Sun, 24 Oct 2010 04:49:08 -0400 Original-Received: from [140.186.70.92] (port=35587 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9wGC-0003Qp-Gd for emacs-devel@gnu.org; Sun, 24 Oct 2010 04:49:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9wGB-0003XP-Fg for emacs-devel@gnu.org; Sun, 24 Oct 2010 04:49:00 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:35530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9wGB-0003X7-AQ; Sun, 24 Oct 2010 04:48:59 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 9709EE8F44; Sun, 24 Oct 2010 10:48:57 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj03AGOPw0xV4S1kPGdsb2JhbACHcJlzDAEBAQE1LbkshUgEjVM X-IronPort-AV: E=Sophos;i="4.58,231,1286143200"; d="scan'208";a="144225994" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 24 Oct 2010 10:48:57 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 8D3297FA05A; Sun, 24 Oct 2010 10:48:56 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.11) Gecko/20101004 Thunderbird/3.1.5 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:132043 Archived-At: Glenn Morris skrev 2010-10-23 20.40: > Jan Dj=E4rv wrote: > >> This was done so that kill-emacs-hook is run. For example, desktop.el >> will then save its desktop when logging out from Gnome/KDE. >> >> What Emacs needs is some sort of notion of when user interaction is >> not OK. For SIGTERM it is almost never ok, as it might be the window >> manager/system/whatever that is shutting down. Even desktop.el will >> try to ask questions sometimes (i.e. desktop-save is set but there is >> no desktop file yet), which is annoying. Maybe introduce some >> interaction-ok-p predicate? > > Things that might ask questions should be on kill-emacs-query-functions= , > not kill-emacs-hook, shouldn't they? Not sure. Things like desktop.el doesn't want to cancel the shutdown, ju= st=20 ask some questions. The message that started this thread "The current se= rver=20 still has clients; delete them? (yes or no)" is from a function run from=20 delete-frame-functions, which is run by delete-frame. Jan D.