From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Date: Fri, 21 Apr 2006 23:35:37 +0200 Message-ID: References: <87vet39ea3.fsf@freemail.hu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145655496 17674 80.91.229.2 (21 Apr 2006 21:38:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2006 21:38:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 21 23:38:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FX3KI-0005ls-Lp for ged-emacs-devel@m.gmane.org; Fri, 21 Apr 2006 23:38:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FX3KI-00083l-6t for ged-emacs-devel@m.gmane.org; Fri, 21 Apr 2006 17:38:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FX3Jn-0007pC-2I for emacs-devel@gnu.org; Fri, 21 Apr 2006 17:37:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FX3Jm-0007oq-CE for emacs-devel@gnu.org; Fri, 21 Apr 2006 17:37:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FX3Jm-0007oj-6m for emacs-devel@gnu.org; Fri, 21 Apr 2006 17:37:34 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FX3LP-00071G-QT for emacs-devel@gnu.org; Fri, 21 Apr 2006 17:39:15 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 04C25262854; Fri, 21 Apr 2006 23:37:28 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Fri, 21 Apr 2006 16:40:25 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53216 Archived-At: Stefan Monnier 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 http://www.cua.dk