all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Howes <howestim@gmail.com>
To: 16548@debbugs.gnu.org
Subject: bug#16548: 24.3; remove "buffer has clients" prompt
Date: Sat, 16 May 2015 21:07:41 -0700 (MST)	[thread overview]
Message-ID: <1431835661183-358682.post@n5.nabble.com> (raw)
In-Reply-To: <87y4kvv4f4.fsf@msstf091.ucc.ie>

Well, I think the same concern still applies even if only one client frame is
open. Some users might have all their "editor" buffers started by other
applications opening in the same existing frame. And the script or
application that opens the editor may not be set up to handle the error
codes correctly.

I was going to say, if the prompt bothers you, why not just add (remove-hook
'kill-buffer-query-functions 'server-kill-buffer-query-function) to your
emacs config. But it appears that doesn't work. I guess the server-specific
hooks get loaded after the init files.

Someone on StackOverflow suggested the following:
  (defun server-remove-kill-buffer-hook () 
      (remove-hook 'kill-buffer-query-functions
'server-kill-buffer-query-function))
  (add-hook 'server-visit-hook 'server-remove-kill-buffer-hook)

http://stackoverflow.com/questions/268088/how-to-remove-the-prompt-for-killing-emacsclient-buffers

I guess it would be easier if there was simply a variable, with a name such
as server-query-before-kill-buffer, that could be set to t or nil.



--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-16548-24-3-remove-buffer-has-clients-prompt-tp311633p358682.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.





      reply	other threads:[~2015-05-17  4:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-25 12:34 bug#16548: 24.3; remove "buffer has clients" prompt Jarek Czekalski
2014-01-25 20:34 ` Glenn Morris
2014-04-18 19:21 ` bug#16548: [PATCH] " Jarek Czekalski
2014-04-27 13:31 ` bug#16548: [PATCH} " Jarek Czekalski
2014-05-05  7:43 ` bug#16548: " Jarek Czekalski
2015-04-30  6:53 ` Tim Howes
2015-05-11  9:39 ` Andreas Amann
2015-05-17  4:07   ` Tim Howes [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=1431835661183-358682.post@n5.nabble.com \
    --to=howestim@gmail.com \
    --cc=16548@debbugs.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.