help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gracefully save buffers and stop emacs daemon.


From: Joost Kremers
Subject: Re: Gracefully save buffers and stop emacs daemon.
Date: 21 Aug 2009 22:48:58 GMT
User-agent: slrn/0.9.9 (Linux)

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]