[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop find-grep-dired?

From: Ehud Karni
Subject: Re: How to stop find-grep-dired?
Date: Mon, 21 Aug 2006 11:56:02 +0300

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"
       (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.


 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry

reply via email to

[Prev in Thread] Current Thread [Next in Thread]