From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davi Leal Newsgroups: gmane.emacs.devel Subject: Re: IDE features: M-x find-grep Date: Mon, 28 Apr 2008 00:10:05 +0200 Message-ID: <200804280010.06357.davi@leals.com> References: <200804272236.28969.davi@leals.com> <87mynf80jv.fsf@shellarchive.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209334226 5168 80.91.229.12 (27 Apr 2008 22:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2008 22:10:26 +0000 (UTC) Cc: Phil Jackson To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 28 00:11:02 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JqF5J-0002Dt-2s for ged-emacs-devel@m.gmane.org; Mon, 28 Apr 2008 00:11:01 +0200 Original-Received: from localhost ([127.0.0.1]:35228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqF4c-0002jR-Az for ged-emacs-devel@m.gmane.org; Sun, 27 Apr 2008 18:10:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqF4W-0002gs-Uj for emacs-devel@gnu.org; Sun, 27 Apr 2008 18:10:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqF4V-0002ec-6N for emacs-devel@gnu.org; Sun, 27 Apr 2008 18:10:12 -0400 Original-Received: from [199.232.76.173] (port=37308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqF4V-0002eZ-2i for emacs-devel@gnu.org; Sun, 27 Apr 2008 18:10:11 -0400 Original-Received: from 57.red-88-2-100.staticip.rima-tde.net ([88.2.100.57] helo=mail.leals.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqF4U-0005ZE-M2 for emacs-devel@gnu.org; Sun, 27 Apr 2008 18:10:10 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.leals.com (Postfix) with ESMTP id ED682E30112; Mon, 28 Apr 2008 00:10:09 +0200 (CEST) Original-Received: from mail.leals.com ([127.0.0.1]) by localhost (AMD.leals.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0QYmsEZja4Cb; Mon, 28 Apr 2008 00:10:09 +0200 (CEST) Original-Received: from amd.leals.com (AMD.leals.com [192.168.0.2]) by mail.leals.com (Postfix) with ESMTP id BA6E7E30111; Mon, 28 Apr 2008 00:10:09 +0200 (CEST) User-Agent: KMail/1.9.7 In-Reply-To: <87mynf80jv.fsf@shellarchive.co.uk> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:96025 Archived-At: 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.