emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: grep-tree doesn't shell-quote-argument]


From: Kim F. Storm
Subject: Re: address@hidden: grep-tree doesn't shell-quote-argument]
Date: Fri, 21 Apr 2006 23:35:37 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>>>> !                       (and grep-find-ignore-CVS-directories "-path 
>>>>> '*/CVS' -prune -o ")
>>> 
>>>> I think this should ignore ".svn", "{arch}", and "_darcs" as well.
>>> 
>>> And .hg
>>> .. and probably a bunch more.
>
>> The problem with CVS is that while editing a file foo.c, there may be
>> related file named CVS/Base/foo.c.  We certainly don't want grep-find to
>> look into that file.
>
> That's one problem.  Another is that those admin-dirs can be large (with
> many files), so the time to traverse them can be non-negligible.

So the right thing would be to have a list of subdirectories to ignore.

However, doing that will give some pretty long argument lists to find | grep.
That's ok, unless you want to post-edit the command line (C-u C-u M-x 
grep-find).

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]