From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: How to stop find-grep-dired? Date: Mon, 21 Aug 2006 11:56:02 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <200608210856.k7L8u2mx020108@beta.mvs.co.il> References: <44E5DACB.10608@student.lu.se> <44E6C066.7010008@student.lu.se> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156150707 13056 80.91.229.2 (21 Aug 2006 08:58:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2006 08:58:27 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 21 10:58:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GF5bx-000274-0f for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 10:58:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GF5bw-0007a8-LQ for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 04:58:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GF5a2-0006XL-8o for emacs-devel@gnu.org; Mon, 21 Aug 2006 04:56:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GF5Zz-0006UR-2l for emacs-devel@gnu.org; Mon, 21 Aug 2006 04:56:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GF5Zy-0006U5-ON for emacs-devel@gnu.org; Mon, 21 Aug 2006 04:56:18 -0400 Original-Received: from [193.16.147.12] (helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GF5hH-0000Ye-P2; Mon, 21 Aug 2006 05:03:52 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.6/8.13.6) with ESMTP id k7L8u6Ft023177; Mon, 21 Aug 2006 11:56:06 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.13.6/8.13.6) with ESMTP id k7L8u6qG020114; Mon, 21 Aug 2006 11:56:06 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.13.6/8.13.6/Submit) id k7L8u2mx020108; Mon, 21 Aug 2006 11:56:02 +0300 Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sun, 20 Aug 2006 00:32:30 -0400) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58598 Archived-At: On Sun, 20 Aug 2006 00:32:30 -0400, Richard Stallman 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. Ehud. -- 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 Better Safe Than Sorry