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: IDE features: M-x find-grep Date: Sun, 27 Apr 2008 22:36:27 +0200 Message-ID: <200804272236.28969.davi@leals.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209328620 22083 80.91.229.12 (27 Apr 2008 20:37:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2008 20:37:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 27 22:37:35 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 1JqDcr-0001em-5I for ged-emacs-devel@m.gmane.org; Sun, 27 Apr 2008 22:37:33 +0200 Original-Received: from localhost ([127.0.0.1]:47852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqDcA-0007Kj-Na for ged-emacs-devel@m.gmane.org; Sun, 27 Apr 2008 16:36:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqDby-0007FG-IQ for emacs-devel@gnu.org; Sun, 27 Apr 2008 16:36:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqDbx-0007E3-5J for emacs-devel@gnu.org; Sun, 27 Apr 2008 16:36:38 -0400 Original-Received: from [199.232.76.173] (port=46149 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqDbw-0007Dl-Se for emacs-devel@gnu.org; Sun, 27 Apr 2008 16:36:36 -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 1JqDbw-0005ki-2q for emacs-devel@gnu.org; Sun, 27 Apr 2008 16:36:36 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.leals.com (Postfix) with ESMTP id 34273E30112 for ; Sun, 27 Apr 2008 22:36:32 +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 VLK6swcdPDB8 for ; Sun, 27 Apr 2008 22:36:32 +0200 (CEST) Original-Received: from amd.leals.com (AMD.leals.com [192.168.0.2]) by mail.leals.com (Postfix) with ESMTP id 0F5C2E30111 for ; Sun, 27 Apr 2008 22:36:32 +0200 (CEST) User-Agent: KMail/1.9.7 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:96014 Archived-At: "find-grep" lists the matches too under the CVS, .svn, .git, ... directories. Other IDEs avoid to list matches on repository specific files. They only list matches in source code files. find-grep could detect it is going to process a CVS, SVN or Git repository and so prune such directories: -path '*/.svn' -prune 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 [2] find . -path '*/CVS' -prune -o -type f -print | xargs -e grep -I -n -e [3] find . -path '*/.svn' -prune -o -type f -print | xargs -e grep -I -n -e Can such behavior be got just configuring .emacs? -- gnuherds.org The democratic FS job site.