From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Gracefully save buffers and stop emacs daemon. Date: 21 Aug 2009 22:48:58 GMT Message-ID: References: <67588ee3-6f5f-4b17-a649-9b9cf95941a0@i18g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250898050 9929 80.91.229.12 (21 Aug 2009 23:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 23:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 01:40:43 2009 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.50) id 1Medir-0004rc-8b for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 01:40:41 +0200 Original-Received: from localhost ([127.0.0.1]:43290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mediq-0007U3-Ls for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 19:40:40 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: individual.net AmOXEBWA4kLd4nLfiprMUAfK7P7amxqncPJlUL9c7LmUlOern7 Cancel-Lock: sha1:esILpsijdiG6+IxuqNxHCb+59wk= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.9 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:172213 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:67367 Archived-At: amicitas wrote: > The closest solution I have found so far is to run: > > emacsclient -c -e '(save-buffers-kill-emacs)' > > The problem with this is that it always displays the following two > prompts, even if no clients were active before: > This Emacs session has clients; exit anyway? (yes or no) > The current server still has clients; delete them? (yes or no) well, the call to emacsclient creates a client... ;-) presumably the prompts will go away if you call emacsclient with the -n switch, which instructs it not to wait but exit immediately. > I can remove (or modify) the first prompt by modifying the 'kill-emacs- > query-functions hooks, there shouldn't be any need for that once you pass -n. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)