* lisp/find-dired.el (find-grep-dired): Doc fix. (Bug#29262)

This commit is contained in:
Eli Zaretskii 2017-11-12 07:03:48 +02:00
parent e286b3381f
commit 49450d0951

View file

@ -255,14 +255,14 @@ See `find-name-arg' to customize the arguments."
(defalias 'lookfor-dired 'find-grep-dired) (defalias 'lookfor-dired 'find-grep-dired)
;;;###autoload ;;;###autoload
(defun find-grep-dired (dir regexp) (defun find-grep-dired (dir regexp)
"Find files in DIR matching a regexp REGEXP and start Dired on output. "Find files in DIR that contain matches for REGEXP and start Dired on output.
The command run (after changing into DIR) is The command run (after changing into DIR) is
find . \\( -type f -exec `grep-program' `find-grep-options' \\ find . \\( -type f -exec `grep-program' `find-grep-options' \\
-e REGEXP {} \\; \\) -ls -e REGEXP {} \\; \\) -ls
where the car of the variable `find-ls-option' specifies what to where the first string in the value of the variable `find-ls-option'
use in place of \"-ls\" as the final argument." specifies what to use in place of \"-ls\" as the final argument."
;; Doc used to say "Thus ARG can also contain additional grep options." ;; Doc used to say "Thus ARG can also contain additional grep options."
;; i) Presumably ARG == REGEXP? ;; i) Presumably ARG == REGEXP?
;; ii) No it can't have options, since it gets shell-quoted. ;; ii) No it can't have options, since it gets shell-quoted.