From 49a2697c1ed851de2e93ee3ba12ab74f286f9634 Mon Sep 17 00:00:00 2001 From: Wolfgang Jenkner Date: Wed, 11 Apr 2012 13:39:35 +0200 Subject: [PATCH] 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 --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/grep.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.2