[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IDE features: M-x find-grep
From: |
Davi Leal |
Subject: |
Re: IDE features: M-x find-grep |
Date: |
Mon, 28 Apr 2008 00:10:05 +0200 |
User-agent: |
KMail/1.9.7 |
Phil Jackson wrote:
> > So, instead of the current find-grep default command [1], emacs could
> > offer one which prune the repository control directories [2], [3], ...
> >
> > [1] find . -type f -print0 | xargs -0 -e grep -nH -e
[...]
> > Can such behavior be got just configuring .emacs?
>
> It's customisable in 'Grep Find Command' (in the group 'grep').
Thanks Phil, it works for me.
However, following the IDE idea, maybe it could be good emacs adding
such "prune directory" automatically depending on if the user ask for
find-grep on a CVS, SVN or other repository type:
That is to say, automatic selection of the prune part of the find-grep
command:
-path '*/CVS' -prune
-path '*/.svn' -prune
-path '*/.git' -prune
...
That to emulate the find-grep result and behavior of IDEs as eclipse, etc.