* Re: Gracefully save buffers and stop emacs daemon.
[not found] <67588ee3-6f5f-4b17-a649-9b9cf95941a0@i18g2000pro.googlegroups.com>
@ 2009-08-21 22:48 ` Joost Kremers
2009-08-21 23:08 ` A.Politz
0 siblings, 1 reply; 2+ messages in thread
From: Joost Kremers @ 2009-08-21 22:48 UTC (permalink / raw)
To: help-gnu-emacs
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Gracefully save buffers and stop emacs daemon.
2009-08-21 22:48 ` Gracefully save buffers and stop emacs daemon Joost Kremers
@ 2009-08-21 23:08 ` A.Politz
0 siblings, 0 replies; 2+ messages in thread
From: A.Politz @ 2009-08-21 23:08 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-21 23:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <67588ee3-6f5f-4b17-a649-9b9cf95941a0@i18g2000pro.googlegroups.com>
2009-08-21 22:48 ` Gracefully save buffers and stop emacs daemon Joost Kremers
2009-08-21 23:08 ` A.Politz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).