From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Jones Newsgroups: gmane.emacs.help Subject: Re: rgrep with (some) fixed parameters Date: Fri, 06 Jun 2008 14:40:58 -0600 Message-ID: References: <0F8F98AB-AC87-4968-8CCE-5EFF06E4B2A2@nf.mpg.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212784898 31694 80.91.229.12 (6 Jun 2008 20:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 20:41:38 +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:42:20 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 1K4ilF-0008H1-23 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 22:42:09 +0200 Original-Received: from localhost ([127.0.0.1]:59412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4ikS-0007Ru-AY for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 16:41:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4ikA-0007R7-MJ for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:41:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4ik9-0007Qm-AN for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:41:02 -0400 Original-Received: from [199.232.76.173] (port=59344 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4ik9-0007Qh-57 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:41:01 -0400 Original-Received: from pmade.com ([64.92.223.213]:64112) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4ik8-0001QG-Tr for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 16:41:01 -0400 Original-Received: from tiny.local.pmade.com (c-76-25-134-186.hsd1.co.comcast.net [76.25.134.186]) (authenticated bits=0) by pmade.com (8.13.8/8.13.8) with ESMTP id m56Kexea087240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 6 Jun 2008 20:40:59 GMT (envelope-from pjones@pmade.com) Mail-Followup-To: Stefan Vollmar , help-gnu-emacs@gnu.org 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.11 (Gnus v5.11) Emacs/22.1 (darwin) X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) 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:54550 Archived-At: Stefan Vollmar writes: > 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) ? You just need to write a few small lines of lisp. Read the documentation for rgrep: C-h f rgrep -- Peter Jones, pmade inc. http://pmade.com