From: Wolfgang Jenkner Date: Wed, 11 Apr 2012 11:39:35 +0000 (+0200) Subject: rgrep ignored file tweak X-Git-Tag: emacs-24.2.90~471^2~364^2~34 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=49a2697c1ed851de2e93ee3ba12ab74f286f9634;p=emacs.git rgrep ignored file tweak * 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 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 205d6d0be99..a3a633c86fe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2011-12-20 Wolfgang Jenkner + + * 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 * startup.el (command-line): Remove support for long-obsolete diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index d41364547f2..569e864a1c6 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -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