From: Thorsten Jolitz <tjolitz@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to set 'buffer-save-without-query' from external program?
Date: Fri, 09 Nov 2012 21:11:32 +0100 [thread overview]
Message-ID: <87vcdetu2z.fsf@googlemail.com> (raw)
In-Reply-To: 87zk2qtwqz.fsf@googlemail.com
Thorsten Jolitz <tjolitz@googlemail.com> writes:
> No, I do want to save it when exiting - but without being queried by
> Emacs about it.
>
> So '(setq buffer-save-without-query t)' looks like the right thing to do
> for me, but I'm not quite sure how to address the right emacsclient
> instance / the right buffer with an external call to emacsclient. At
> least what I tried (see original message) has no effect.
Ok, I found a solution simply by using another way of exiting the edit
buffer: instead of using 'C-c #' (server-edit) I can use 'C-u C-x C-c'
,---------------------------------------------------------------------
| It is bound to C-x C-c, <menu-bar> <file> <exit-emacs>.
|
| (save-buffers-kill-terminal &optional ARG)
|
| Offer to save each buffer, then kill the current connection.
| If the current frame has no client, kill Emacs itself.
|
| With prefix ARG, silently save all file-visiting buffers, then kill.
`---------------------------------------------------------------------
which not only exits without querying, but returns the focus to the
commandline of the calling external program, exactly what I want:
Thanks for the help.
prev parent reply other threads:[~2012-11-09 20:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-09 17:02 How to set 'buffer-save-without-query' from external program? Thorsten Jolitz
2012-11-09 17:09 ` Drew Adams
2012-11-09 17:13 ` Thorsten Jolitz
2012-11-09 17:18 ` Drew Adams
2012-11-09 17:32 ` Thorsten Jolitz
2012-11-09 17:34 ` Drew Adams
[not found] ` <mailman.12642.1352481549.855.help-gnu-emacs@gnu.org>
2012-11-09 18:53 ` Barry Margolin
2012-11-09 19:13 ` Thorsten Jolitz
2012-11-09 20:11 ` Thorsten Jolitz [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vcdetu2z.fsf@googlemail.com \
--to=tjolitz@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.