From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5136 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?iso-8859-1?Q?Bockg=E5rd?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: An unusual problem? Date: Sat, 28 May 2005 23:50:45 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: <87is17svts.fsf@nowhere.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138670936 26228 80.91.229.2 (31 Jan 2006 01:28:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:28:56 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:34:50 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!usenet01.sei.cmu.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.116.9.MISMATCH!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: linus002.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2CvXZKJTpCZ+q6daIkG8AkE1Ovg= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5278 Original-Lines: 46 X-Gnus-Article-Number: 5278 Tue Jan 17 17:34:50 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5136 Archived-At: John Taylor writes: > bojohan+news@dd.chalmers.se (Johan Bockgård) writes: >> Use C-h v (describe-variable). >> >> The docstring says: >> >> Functions to call with no arguments to query about killing Emacs. >> If any of these functions returns nil, killing Emacs is cancelled. >> `save-buffers-kill-emacs' (C-x C-c) calls these functions, but >> `kill-emacs', the low level primitive, does not. See also >> `kill-emacs-hook'. >> > > All I get is this: > 'kill-emacs-query-functions's value is > (timeclock-query-out)' > > What do I need to do - change the variable to 't' somewhere?!? In the development version of emacs the function's definition is this: (defun timeclock-query-out () "Ask the user whether to clock out. This is a useful function for adding to `kill-emacs-query-functions'." (and (equal (car timeclock-last-event) "i") (y-or-n-p "You're currently clocking time, clock out? ") (timeclock-out)) ;; Unconditionally return t for `kill-emacs-query-functions'. t) In your version it may return nil. You could patch the function or wrap it in a function that always returns `t' and add that to kill-emacs-query-functions instead. That is, replace (add-hook 'kill-emacs-query-functions 'timeclock-query-out) with (add-hook 'kill-emacs-query-functions (lambda () (timeclock-query-out) t)) -- Johan Bockgård