From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: no way to stop find-grep-dired
Date: Mon, 06 Oct 2003 10:47:30 -0600 [thread overview]
Message-ID: <3F819CA2.40606@yahoo.com> (raw)
In-Reply-To: mailman.1104.1065225718.21628.bug-gnu-emacs@gnu.org
Dan Jacobson wrote:
> find-grep-dired's docstring should say how to interrupt it.
> Apparently one does a kill-buffer, which takes with it all its
> output so far.
Better yet, a new command to do what you want (what would be a good
local binding -- maybe C-k?):
*** emacs-21.3/lisp/find-dired.el.orig Thu Dec 27 19:13:31 2001
--- emacs-21.3/lisp/find-dired.el Mon Oct 6 10:41:17 2003
***************
*** 101,110 ****
(if (or (not (eq (process-status find) 'run))
(yes-or-no-p "A `find' process is running; kill it? "))
(condition-case nil
! (progn
! (interrupt-process find)
! (sit-for 1)
! (delete-process find))
(error nil))
(error "Cannot have two processes in `%s' at once" (buffer-name)))))
--- 101,107 ----
(if (or (not (eq (process-status find) 'run))
(yes-or-no-p "A `find' process is running; kill it? "))
(condition-case nil
! (kill-find-dired find)
(error nil))
(error "Cannot have two processes in `%s' at once" (buffer-name)))))
***************
*** 150,155 ****
--- 147,165 ----
(setq mode-line-process '(":%s"))))
;;;###autoload
+ (defun kill-find-dired (&optional process)
+ "Kill the PROCESS made by the \\[find-dired] command."
+ (interactive)
+ (or (and process
+ (equal (process-name process) find-dired-find-program))
+ (setq process
+ (get-process find-dired-find-program))
+ (error "No %s process" find-dired-find-program))
+ (interrupt-process process)
+ (sit-for 1)
+ (delete-process process)))
+
+ ;;;###autoload
(defun find-name-dired (dir pattern)
"Search DIR recursively for files matching the globbing pattern PATTERN,
and run dired on those files.
--
Kevin Rodgers
next parent reply other threads:[~2003-10-06 16:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1104.1065225718.21628.bug-gnu-emacs@gnu.org>
2003-10-06 16:47 ` Kevin Rodgers [this message]
2003-10-06 18:41 ` no way to stop find-grep-dired Kevin Rodgers
[not found] ` <mailman.1173.1065465731.21628.bug-gnu-emacs@gnu.org>
2003-10-06 19:41 ` Kevin Rodgers
2003-10-03 23:23 Dan Jacobson
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F819CA2.40606@yahoo.com \
--to=ihs_4664@yahoo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).