unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "A.Politz" <politza@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Gracefully save buffers and stop emacs daemon.
Date: Fri, 21 Aug 2009 16:08:32 -0700 (PDT)	[thread overview]
Message-ID: <b401ba2d-a138-4574-811f-c1113c4e4d7f@l5g2000yqo.googlegroups.com> (raw)
In-Reply-To: slrnh8u90m.ka4.joostkremers@j.kremers4.news.arnhem.chello.nl

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	other threads:[~2009-08-21 23:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b401ba2d-a138-4574-811f-c1113c4e4d7f@l5g2000yqo.googlegroups.com \
    --to=politza@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).