+2002-03-02 Richard M. Stallman <rms@gnu.org>
+
+ * find-dired.el (find-grep-dired): Call shell-quote-argument.
+ Specify the -e option.
+ Rename arg to `regexp'.
+
2002-03-02 Milan Zamazal <pdm@zamazal.org>
* textmodes/tildify.el (tildify-string-alist): Add entry for xml-mode.
(defalias 'lookfor-dired 'find-grep-dired)
;;;###autoload
-(defun find-grep-dired (dir args)
- "Find files in DIR containing a regexp ARG and start Dired on output.
+(defun find-grep-dired (dir regexp)
+ "Find files in DIR containing a regexp REGEXP and start Dired on output.
The command run (after changing into DIR) is
- find . -exec grep -s ARG {} \\\; -ls
+ find . -exec grep -s -e REGEXP {} \\\; -ls
Thus ARG can also contain additional grep options."
(interactive "DFind-grep (directory): \nsFind-grep (grep regexp): ")
;; about symlinks, so as far as I know this is not wrong.
(find-dired dir
(concat "-type f -exec grep " find-grep-options " -e "
- (shell-quote-argument args)
+ (shell-quote-argument regexp)
args " {} \\\; ")))
(defun find-dired-filter (proc string)