From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Better process-kill-query prompt
Date: Sun, 11 Sep 2011 02:46:05 +0200 [thread overview]
Message-ID: <m3obyrx5wy.fsf@stories.gnus.org> (raw)
Would installing the following patch be OK? It would aid debugging
greatly if people can report back what the name of the buffer is that
Emacs is trying to kill.
=== modified file 'lisp/subr.el'
*** lisp/subr.el 2011-09-05 08:05:01 +0000
--- lisp/subr.el 2011-09-11 00:44:03 +0000
***************
*** 1904,1910 ****
(or (not process)
(not (memq (process-status process) '(run stop open listen)))
(not (process-query-on-exit-flag process))
! (yes-or-no-p "Buffer has a running process; kill it? "))))
(add-hook 'kill-buffer-query-functions 'process-kill-buffer-query-function)
--- 1904,1911 ----
(or (not process)
(not (memq (process-status process) '(run stop open listen)))
(not (process-query-on-exit-flag process))
! (yes-or-no-p "Buffer \"%s\" has a running process; kill it? "
! (buffer-name)))))
(add-hook 'kill-buffer-query-functions 'process-kill-buffer-query-function)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
next reply other threads:[~2011-09-11 0:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-11 0:46 Lars Magne Ingebrigtsen [this message]
2011-09-11 1:08 ` Better process-kill-query prompt Óscar Fuentes
2011-09-11 2:59 ` Eli Zaretskii
2011-09-11 3:26 ` Lars Magne Ingebrigtsen
2011-09-11 4:31 ` Eli Zaretskii
2011-09-11 4:41 ` Lars Magne Ingebrigtsen
2011-09-11 3:14 ` Stefan Monnier
2011-09-11 3:31 ` Lars Magne Ingebrigtsen
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=m3obyrx5wy.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@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.