views:

349

answers:

2

After I open something with emacsclient, when I kill that buffer (C-x k) I get a confirmation dialog:

Buffer `blah' still has clients; kill it? (yes or no)

But when I kill buffers opened directly from Emacs I don't. Is there a way not to get them when emacsclient opened them?

+4  A: 

Try

(remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)*

(More information on Using Emacsclient blog entry. Worked with me.

Touko
I don't know if it's appropriate for me to upvote this answer, but to the best of my knowledge it's correct, so :-)
ShreevatsaR
+2  A: 

The other option is to use the -n option with emacsclient so that it doesn't wait for the file to be edited before exiting.

For example:

emacsclient -n myfile.txt
Dave Webb