all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* no way to stop find-grep-dired
@ 2003-10-03 23:23 Dan Jacobson
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Jacobson @ 2003-10-03 23:23 UTC (permalink / raw)


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.

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

* Re: no way to stop find-grep-dired
       [not found] <mailman.1104.1065225718.21628.bug-gnu-emacs@gnu.org>
@ 2003-10-06 16:47 ` Kevin Rodgers
  2003-10-06 18:41   ` Kevin Rodgers
       [not found]   ` <mailman.1173.1065465731.21628.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Rodgers @ 2003-10-06 16:47 UTC (permalink / raw)


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

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

* Re: no way to stop find-grep-dired
  2003-10-06 16:47 ` no way to stop find-grep-dired Kevin Rodgers
@ 2003-10-06 18:41   ` Kevin Rodgers
       [not found]   ` <mailman.1173.1065465731.21628.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2003-10-06 18:41 UTC (permalink / raw)


Kevin Rodgers wrote:

> Better yet, a new command to do what you want (what would be a good
> local binding -- maybe C-k?):

kill-compilation is on `C-c C-k' in compilation-mode, so that seems
like a good choice for kill-find-dired.  Also, it might be nice to
define kill-find-name-dired and kill-find-grep-dired as aliases for
kill-find-dired, for people who use find-name-dired and
find-grep-dired.

-- 
Kevin Rodgers

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

* Re: no way to stop find-grep-dired
       [not found]   ` <mailman.1173.1065465731.21628.bug-gnu-emacs@gnu.org>
@ 2003-10-06 19:41     ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2003-10-06 19:41 UTC (permalink / raw)


Kevin Rodgers wrote:

> kill-compilation is on `C-c C-k' in compilation-mode, so that seems
> like a good choice for kill-find-dired.  Also, it might be nice to
> define kill-find-name-dired and kill-find-grep-dired as aliases for
> kill-find-dired, for people who use find-name-dired and
> find-grep-dired.

While we're at it:


(defalias 'kill-grep 'kill-compilation)
(defalias 'kill-grep-find 'kill-compilation)

-- 
Kevin Rodgers

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

end of thread, other threads:[~2003-10-06 19:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1104.1065225718.21628.bug-gnu-emacs@gnu.org>
2003-10-06 16:47 ` no way to stop find-grep-dired Kevin Rodgers
2003-10-06 18:41   ` 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

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.