From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Emacs daemon doesn't terminate on SIGTERM any more Date: Sat, 23 Oct 2010 14:40:40 -0400 Message-ID: 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 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287861369 18931 80.91.229.12 (23 Oct 2010 19:16:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2010 19:16:09 +0000 (UTC) Cc: Ulrich Mueller , 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 Sat Oct 23 21:16:08 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 1P9jZV-00039p-NU for ged-emacs-devel@m.gmane.org; Sat, 23 Oct 2010 21:16:06 +0200 Original-Received: from localhost ([127.0.0.1]:57398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9jZU-0007qU-VL for ged-emacs-devel@m.gmane.org; Sat, 23 Oct 2010 15:16:04 -0400 Original-Received: from [140.186.70.92] (port=41547 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9jGO-0008RA-TO for emacs-devel@gnu.org; Sat, 23 Oct 2010 14:56:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9j1G-0007xz-QG for emacs-devel@gnu.org; Sat, 23 Oct 2010 14:40:43 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9j1G-0007xv-Oi for emacs-devel@gnu.org; Sat, 23 Oct 2010 14:40:42 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P9j1E-0002Yc-TN; Sat, 23 Oct 2010 14:40:40 -0400 X-Spook: Sears Tower New World Order pipeline fraud national X-Ran: bon,.{oE&M39=Mn"\)r+*\iw0YbM5bXVWbrLsv+N6[yx&3AtIDE:xw#?N1&XdiU~7<3vg2 X-Hue: red X-Attribution: GM In-Reply-To: <4CC2A3DB.2090904@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22?= =?iso-8859-1?Q?'s?= message of "Sat\, 23 Oct 2010 10\:59\:07 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132030 Archived-At: 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?