On Sun, 20 Aug 2006 00:32:30 -0400, Richard Stallman <address@hidden> wrote:
Does M-x kill-grep kill the process for find-grep-dired?
If not, I think we should make it work.
That could be the case for `grep-find' for example. Why not bind C-g to
something like this in those buffers (or globally)?
I get a bad feeling about that. People type C-g to try to cancel
commands, and sometimes do so by mistake in betweeen commands. This
is a matter of habit. If the habit activates itself while
find-grep-dired is running, it could kill the process when you
don't want to.
I suggest to use C-x C-g to kill the buffer's associated process (any,
not just grep) like this:
(defun kill-async-process ()
"Kill the asynchronous process associated with this buffer"
(interactive)
(delete-process nil))
(global-set-key "\C-x\C-g" 'kill-async-process)
This can not harm, because you must use it in the relevant buffer.