Mercurial > emacs
comparison lisp/find-dired.el @ 18580:717e09103d06
(find-grep-dired): Use -type f.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 04 Jul 1997 00:11:24 +0000 |
parents | 4fa015c0a620 |
children | 886039ba7b3e |
comparison
equal
deleted
inserted
replaced
18579:6a0e208faefd | 18580:717e09103d06 |
---|---|
141 | 141 |
142 Thus ARG can also contain additional grep options." | 142 Thus ARG can also contain additional grep options." |
143 (interactive "DFind-grep (directory): \nsFind-grep (grep regexp): ") | 143 (interactive "DFind-grep (directory): \nsFind-grep (grep regexp): ") |
144 ;; find -exec doesn't allow shell i/o redirections in the command, | 144 ;; find -exec doesn't allow shell i/o redirections in the command, |
145 ;; or we could use `grep -l >/dev/null' | 145 ;; or we could use `grep -l >/dev/null' |
146 ;; We use -type f, not ! -type d, to avoid getting screwed | |
147 ;; by FIFOs and devices. I'm not sure what's best to do | |
148 ;; about symlinks, so as far as I know this is not wrong. | |
146 (find-dired dir | 149 (find-dired dir |
147 (concat "! -type d -exec grep " find-grep-options " " | 150 (concat "-type f -exec grep " find-grep-options " " |
148 args " {} \\\; "))) | 151 args " {} \\\; "))) |
149 | 152 |
150 (defun find-dired-filter (proc string) | 153 (defun find-dired-filter (proc string) |
151 ;; Filter for \\[find-dired] processes. | 154 ;; Filter for \\[find-dired] processes. |
152 (let ((buf (process-buffer proc))) | 155 (let ((buf (process-buffer proc))) |