From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: rgrep with (some) fixed parameters Date: Fri, 06 Jun 2008 22:54:29 +0200 Message-ID: <87bq2el1x6.fsf@thievol.homelinux.org> References: <0F8F98AB-AC87-4968-8CCE-5EFF06E4B2A2@nf.mpg.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1212785415 783 80.91.229.12 (6 Jun 2008 20:50:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 20:50:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Vollmar Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 22:50:56 2008 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 1K4iti-0002nY-GS for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 22:50:54 +0200 Original-Received: from localhost ([127.0.0.1]:44076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4isv-0002cC-DE for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 16:50:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4isX-0002aB-Rd for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:49:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4isW-0002XV-BN for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:49:41 -0400 Original-Received: from [199.232.76.173] (port=37085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4isW-0002XO-48 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:49:40 -0400 Original-Received: from gv-out-0910.google.com ([216.239.58.187]:1732) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4isV-00039I-PR for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:49:40 -0400 Original-Received: by gv-out-0910.google.com with SMTP id i36so520641gve.17 for ; Fri, 06 Jun 2008 13:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=W44DShtgKB+yiO6N8o6A4TPIXzCZ+SYBZZf17G9ecC8=; b=GawwHOBJF4ed0W2Vq3ch4Lc4FcRh/bW62LLudNF7kCPpEfx89aKY7jD1bIu/qcLgK0 WSfxHmujqqxu3TyPMeeSsVIWpMFvy1YZhjbWYr0dD0ogPwJ8tlGQITiyo1HE9VgonrCJ jX0TTU3Z7fTl/GHY+OB1oC5+dO1Kz/PX5oW2M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=WMAKHks9kHwJTqe2bN1WiucrvJs/6KBynGOzPuL8TggJnC28TjIcMO3jHPRciPG2Wi qvo/xzE8DmujJI8HBnRaVxoofhcntTiNXdP4apP74davh+MOYZbT1HYHFDiD6GKN10AD Vt1hFifur19L7LdLaGa/WNYdFZKqxXB1ksuVw= Original-Received: by 10.103.225.2 with SMTP id c2mr319574mur.93.1212785377842; Fri, 06 Jun 2008 13:49:37 -0700 (PDT) Original-Received: from thievol.homelinux.org ( [79.85.211.22]) by mx.google.com with ESMTPS id w5sm23414237mue.11.2008.06.06.13.49.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 06 Jun 2008 13:49:36 -0700 (PDT) In-Reply-To: <0F8F98AB-AC87-4968-8CCE-5EFF06E4B2A2@nf.mpg.de> (Stefan Vollmar's message of "Fri, 06 Jun 2008 21:26:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:54552 Archived-At: Have a look at TraverseDirectory http://www.emacswiki.org/cgi-bin/wiki/TraverseDirectory It doesn't do exactly what you want but it's much easier to configure than grep/find commands. May be i can add what you want to it. Stefan Vollmar writes: > Hi, > > I find the M-rgrep command very useful but need it frequently in the > context of a particular project where all parameters remain constant > (directory, name pattern of files to search) except the expression to > look for. How could I create a command my-rgrep that uses some pre-set > parameters and only asks for the search pattern (the project-specific > parameters have already been assigned to some variables) ? > > Many thanks in advance, > Stefan > -- > Dr. Stefan Vollmar, Dipl.-Phys. > Max-Planck-Institut f=C3=BCr neurologische Forschung > Gleuelerstr. 50, 50931 K=C3=B6ln, Germany > Tel.: +49-221-4726-213 FAX +49-221-4726-298 > Tel.: +49-221-478-5713 Mobile: 0160-93874279 > Email: vollmar@nf.mpg.de http://www.nf.mpg.de > > > > > > > --=20 A + Thierry Pub key: http://pgp.mit.edu