From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael Newsgroups: gmane.emacs.help Subject: kill-emacs-query-functions and emacsclient? Date: Tue, 11 May 2010 01:12:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291826198 14720 80.91.229.12 (8 Dec 2010 16:36:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:36:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:36:35 2010 Return-path: Envelope-to: geh-help-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 1PQN0L-00032O-RF for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:36:34 +0100 Original-Received: from localhost ([127.0.0.1]:41485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQN0L-00022s-7P for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:36:33 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!s29g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 132.230.1.27 Original-X-Trace: posting.google.com 1273565566 15550 127.0.0.1 (11 May 2010 08:12:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 11 May 2010 08:12:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s29g2000yqd.googlegroups.com; posting-host=132.230.1.27; posting-account=H3kG6goAAABkWPS6Jo4F126NCW9gYB4c User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3pre) Gecko/20100316 Ubuntu/9.04 (jaunty) Namoroka/3.6.3pre,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178120 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75623 Archived-At: Hi, I use (add-hook 'kill-emacs-query-functions 'some-user-interacting-function) in my .emacs to execute a function before exiting emacs which prompts some questions in the minibuffer ("some-user-interactiong-function"). This works well for emacs. Now I try to use emacs23 in daemon-mode and emacsclient. Is it possible to execute "some-user-interacting-function" automatically before closing an emacsclient frame (by C-x C-c or by the window manager) ? Thanks Michael