]> git.eshelyaron.com Git - emacs.git/commitdiff
dired-do-find-regexp: Use rgrep-find-ignored-directories.
authorSam Steingold <sds@gnu.org>
Mon, 9 Jul 2018 13:29:09 +0000 (09:29 -0400)
committerSam Steingold <sds@gnu.org>
Mon, 9 Jul 2018 13:29:23 +0000 (09:29 -0400)
lisp/dired-aux.el

index 0ef1777d1684879bdd1c5398185053cba9ae0916..925a7d50d6f6ee32873d9694bc347145a2991f31 100644 (file)
@@ -2856,11 +2856,11 @@ REGEXP should use constructs supported by your local `grep' command."
   (interactive "sSearch marked files (regexp): ")
   (require 'grep)
   (defvar grep-find-ignored-files)
-  (defvar grep-find-ignored-directories)
+  (declare-function rgrep-find-ignored-directories "grep" (dir))
   (let* ((files (dired-get-marked-files nil nil nil nil t))
          (ignores (nconc (mapcar
                           (lambda (s) (concat s "/"))
-                          grep-find-ignored-directories)
+                          (rgrep-find-ignored-directories default-directory))
                          grep-find-ignored-files))
          (xrefs (mapcan
                  (lambda (file)