From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Sacharuk Newsgroups: gmane.emacs.help Subject: Re: Doing a file filter with grep Date: Fri, 26 Jan 2007 08:35:09 -0700 Message-ID: <662D7D03-74FC-4E66-B16F-FA8E6F67394D@gmail.com> References: <1169764665.158410.22570@k78g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169847343 27917 80.91.229.12 (26 Jan 2007 21:35:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Jan 2007 21:35:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: storm@cua.dk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 26 22:35:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HAYjO-00059O-60 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 22:35:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAYjN-0007Yw-QD for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 16:35:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAT6i-0005Hb-CJ for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 10:35:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAT6f-0005Dy-Q0 for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 10:35:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAT6f-0005Dc-ID for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 10:35:13 -0500 Original-Received: from nz-out-0506.google.com ([64.233.162.227]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAT6f-0005pw-8Z for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 10:35:13 -0500 Original-Received: by nz-out-0506.google.com with SMTP id s1so701142nze for ; Fri, 26 Jan 2007 07:35:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=O5/GzEBXK22gEMlGj+kO24FFtUKpbjanndELTWNqdavD5VWln9XkOo/4S6pEfsKuM3eJQYDfuS6OkbR5cAdqsLnDWkThTvEjDyezr94NVSr2JT52vl4ICocViKAz8ND0NShC3UmYNbpfRSxRwcnQq8BbznwPDrDxSzSYF5H7kIc= Original-Received: by 10.65.119.14 with SMTP id w14mr5095167qbm.1169825712384; Fri, 26 Jan 2007 07:35:12 -0800 (PST) Original-Received: from ?10.0.0.13? ( [68.148.8.246]) by mx.google.com with ESMTP id e16sm4543639qbe.2007.01.26.07.35.11; Fri, 26 Jan 2007 07:35:12 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.752.3) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-Mailman-Approved-At: Fri, 26 Jan 2007 16:35:19 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40687 Archived-At: I did, but it didn't appear to turn up anything useful. I'll take a look at your suggestion when I get in to work. Thanks. :) JS On Jan 26, 2007, at 6:09 AM, Kim F. Storm wrote: > "RealityMonster" writes: > >> So I've been getting find and grep working on my WinXP system with >> emacs. I can finally properly search for files and search in files >> for >> the things that I want. I'd like, however, to put a file filter on >> it, >> so I can search just through .h files or .cpp files. >> >> On the command line, I'd do something like this: >> >> grep -r Pattern `find . -name *.cpp` > > Try M-x rgrep > > (available only in Emacs 22). > >> >> Any help here? Does emacs already do what I want somewhere else? M-x >> apropos find is understandably enormous. > > So why didn't you try this :-) > C-h a grep RET > > > -- > Kim F. Storm http://www.cua.dk > -- jan@chloris.ca Cyclist at Large Secret Asian Man DNA neither cares nor knows. DNA just is. And we dance to its music. -Richard Dawkins