all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Better process-kill-query prompt
@ 2011-09-11  0:46 Lars Magne Ingebrigtsen
  2011-09-11  1:08 ` Óscar Fuentes
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-11  0:46 UTC (permalink / raw
  To: emacs-devel

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/




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-11  4:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-11  0:46 Better process-kill-query prompt Lars Magne Ingebrigtsen
2011-09-11  1:08 ` Ó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

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.