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

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

Re: How to set 'buffer-save-without-query' from external program?


From: Thorsten Jolitz
Subject: Re: How to set 'buffer-save-without-query' from external program?
Date: Fri, 09 Nov 2012 21:11:32 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

Thorsten Jolitz <address@hidden> 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. 









reply via email to

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