From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: robert somerville Newsgroups: gmane.emacs.help Subject: Re: re Modifying default find-grep command string Date: Tue, 25 Oct 2011 11:24:14 -0600 Message-ID: References: <81vcrdawds.fsf@gmail.com> <7B561BFC-D6CC-41D8-ACC8-C3DF80582D96@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6dd8d6bfd18d804b022ce81 X-Trace: dough.gmane.org 1319563466 11303 80.91.229.12 (25 Oct 2011 17:24:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 17:24:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Jambunathan K To: Perry Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 19:24:22 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIkje-0003uN-82 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 19:24:22 +0200 Original-Received: from localhost ([::1]:58137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkjd-0003Of-PD for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 13:24:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkjZ-0003Oa-Bn for help-gnu-emacs@gnu.org; Tue, 25 Oct 2011 13:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIkjY-0003qY-58 for help-gnu-emacs@gnu.org; Tue, 25 Oct 2011 13:24:17 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:47118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkjY-0003qN-0l for help-gnu-emacs@gnu.org; Tue, 25 Oct 2011 13:24:16 -0400 Original-Received: by wyg34 with SMTP id 34so970416wyg.0 for ; Tue, 25 Oct 2011 10:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=S+ose0mvzhbjw7TkUvbXIDywGbE+1iusXyXZMNMDcH0=; b=DrNa+MN/3/9nwKlAI5e/mtpM6YnqYGE5JjTAzXeclXfUAguufuMIghmra4UntFYwA+ 97ZpwSedjlnNYWJCZlosh/FeNNie4u/luSeJKlAV7WxQHUYuYsWZCZaecINWof/oHGeu E0QXFOiDhQqR1B25mjplPb/XeeFNu1pHKAFp8= Original-Received: by 10.216.135.65 with SMTP id t43mr3743332wei.7.1319563454912; Tue, 25 Oct 2011 10:24:14 -0700 (PDT) Original-Received: by 10.216.22.73 with HTTP; Tue, 25 Oct 2011 10:24:14 -0700 (PDT) In-Reply-To: <7B561BFC-D6CC-41D8-ACC8-C3DF80582D96@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82651 Archived-At: --0016e6dd8d6bfd18d804b022ce81 Content-Type: text/plain; charset=ISO-8859-1 yes, this is what i was looking for, thanks , much appreciated Cheers; Robert Somerville On Tue, Oct 25, 2011 at 10:55 AM, Perry Smith wrote: > > On Oct 25, 2011, at 11:43 AM, robert somerville wrote: > > it seems like a very good start !! > > If i can do the following, i will be very pleased !! > > 1) how (syntax) to specify multiple file types, different from the default? > > > If you look at the help for rgrep, it mentions grep-files-aliases. > > You can add aliases. Click "customize" and hopefully it will be simple > enough for you to add to it. Then specify the new alias in the 2nd prompt. > > 2) where/how to change the default string > > > Not clear which default string you are referring to. The default for the > files to search changes (somehow) based upon the current buffer. > > HTH, > pedz > > > > p.s. on a linux platform > > On Tue, Oct 25, 2011 at 10:06 AM, Jambunathan K wrote: > >> >> Does >> >> M-x rgrep >> >> work for you? >> >> > can somebody explain to me (a lisp beginner) how to modify the >> > find-grep default string ?? >> > >> > the default is: >> > find . -type f -print0 | "xargs" -0 -e grep -nH -e >> > >> > i would like something like : >> > >> > find .. -name "*.cxx" -print0 | "xargs" -0 -e grep -inH -e >> > >> > >> > thanks in advance >> > Robert Somerville >> > >> > >> > >> > >> > >> >> -- >> > > > --0016e6dd8d6bfd18d804b022ce81 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable yes, this is what i was looking for, thanks , much appreciated

Chee= rs;
Robert Somerville

On Tue, Oct 25, = 2011 at 10:55 AM, Perry Smith <pedzsan@gmail.com> wrote:

On Oct 25, 2011, at 11:43 AM, robert somerville wr= ote:

it seems like a very good start !!

If= i can do the following, i will be very pleased !!

1) how (syntax) t= o specify multiple file types, different from the default?

If you look at the help for rgrep, it mentions=A0grep-= files-aliases.

You can add aliases. =A0 Click &quo= t;customize" and hopefully it will be simple enough for you to add to = it. =A0Then specify the new alias in the 2nd prompt.

2) where/how=A0 to cha= nge the default string

Not clear= which default string you are referring to. =A0The default for the files to= search changes (somehow) based upon the current buffer.

HTH,
pedz



p.s. on a linux platform

On Tue, Oct = 25, 2011 at 10:06 AM, Jambunathan K <kjambunathan@gmail.com> wrote:

Does

M-x rgrep

work for you?

> can somebody explain to me (a lisp beginner) how to modify the
> find-grep default string ??
>
> the default is:
> =A0find . -type f -print0 | "xargs" -0 -e grep -nH -e
>
> i would like something like :
>
> =A0find ..=A0 -name "*.cxx"=A0=A0 -print0 | "xargs"= ; -0 -e grep -inH -e
>
>
> thanks in advance
> Robert Somerville
>
>
>
>
>

--



--0016e6dd8d6bfd18d804b022ce81--