rgrep ignored file tweak
authorWolfgang Jenkner <wjenkner@inode.at>
Wed, 11 Apr 2012 11:39:35 +0000 (13:39 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 11 Apr 2012 11:39:35 +0000 (13:39 +0200)
* lisp/progmodes/grep.el (rgrep): Tweak the find command line so
that directories matching `grep-find-ignored-files' won't be
pruned.

Fixes: debbugs:10351

lisp/ChangeLog
lisp/progmodes/grep.el

index 205d6d0..a3a633c 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-20  Wolfgang Jenkner  <wjenkner@inode.at>
+
+       * lisp/progmodes/grep.el (rgrep): Tweak the find command line so
+       that directories matching `grep-find-ignored-files' won't be
+       pruned (bug#10351).
+
 2012-04-11  Chong Yidong  <cyd@gnu.org>
 
        * startup.el (command-line): Remove support for long-obsolete
index d413645..569e864 100644 (file)
@@ -1024,7 +1024,8 @@ to specify a command to run."
                                    (shell-quote-argument ")")
                                    " -prune -o "))
                       (and grep-find-ignored-files
-                           (concat (shell-quote-argument "(")
+                           (concat (shell-quote-argument "!") " -type d "
+                                   (shell-quote-argument "(")
                                    ;; we should use shell-quote-argument here
                                    " -name "
                                    (mapconcat