diff options
| author | Richard M. Stallman | 2002-03-03 00:36:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-03 00:36:27 +0000 |
| commit | 4367c5a259eab024a9205e90717d798b43f958b3 (patch) | |
| tree | dfc0145e14a8372a9f23a0d16c1007048462ea4e | |
| parent | a086a7fefda190820c5640c6c81c441371c7b4ff (diff) | |
| download | emacs-4367c5a259eab024a9205e90717d798b43f958b3.tar.gz emacs-4367c5a259eab024a9205e90717d798b43f958b3.zip | |
(find-grep-dired): Rename arg to `regexp'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/find-dired.el | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 35d0e05abdc..ec840d52286 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-03-02 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * find-dired.el (find-grep-dired): Call shell-quote-argument. | ||
| 4 | Specify the -e option. | ||
| 5 | Rename arg to `regexp'. | ||
| 6 | |||
| 1 | 2002-03-02 Milan Zamazal <pdm@zamazal.org> | 7 | 2002-03-02 Milan Zamazal <pdm@zamazal.org> |
| 2 | 8 | ||
| 3 | * textmodes/tildify.el (tildify-string-alist): Add entry for xml-mode. | 9 | * textmodes/tildify.el (tildify-string-alist): Add entry for xml-mode. |
diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 68f076a8284..a09283ec29b 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el | |||
| @@ -169,11 +169,11 @@ The command run (after changing into DIR) is | |||
| 169 | 169 | ||
| 170 | (defalias 'lookfor-dired 'find-grep-dired) | 170 | (defalias 'lookfor-dired 'find-grep-dired) |
| 171 | ;;;###autoload | 171 | ;;;###autoload |
| 172 | (defun find-grep-dired (dir args) | 172 | (defun find-grep-dired (dir regexp) |
| 173 | "Find files in DIR containing a regexp ARG and start Dired on output. | 173 | "Find files in DIR containing a regexp REGEXP and start Dired on output. |
| 174 | The command run (after changing into DIR) is | 174 | The command run (after changing into DIR) is |
| 175 | 175 | ||
| 176 | find . -exec grep -s ARG {} \\\; -ls | 176 | find . -exec grep -s -e REGEXP {} \\\; -ls |
| 177 | 177 | ||
| 178 | Thus ARG can also contain additional grep options." | 178 | Thus ARG can also contain additional grep options." |
| 179 | (interactive "DFind-grep (directory): \nsFind-grep (grep regexp): ") | 179 | (interactive "DFind-grep (directory): \nsFind-grep (grep regexp): ") |
| @@ -184,7 +184,7 @@ Thus ARG can also contain additional grep options." | |||
| 184 | ;; about symlinks, so as far as I know this is not wrong. | 184 | ;; about symlinks, so as far as I know this is not wrong. |
| 185 | (find-dired dir | 185 | (find-dired dir |
| 186 | (concat "-type f -exec grep " find-grep-options " -e " | 186 | (concat "-type f -exec grep " find-grep-options " -e " |
| 187 | (shell-quote-argument args) | 187 | (shell-quote-argument regexp) |
| 188 | args " {} \\\; "))) | 188 | args " {} \\\; "))) |
| 189 | 189 | ||
| 190 | (defun find-dired-filter (proc string) | 190 | (defun find-dired-filter (proc string) |