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: A.Politz
Subject: Re: Gracefully save buffers and stop emacs daemon.
Date: Fri, 21 Aug 2009 16:08:32 -0700 (PDT)
User-agent: G2/1.0

On Aug 22, 12:48 am, Joost Kremers <joostkrem...@yahoo.com> wrote:
> 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.

That does not appear to work for eval arguments. Maybe a timer can
help.

$ ec -e "(run-with-timer 0 0 'save-buffers-kill-emacs)"

-ap


reply via email to

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