unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: robert somerville <rbrt.somerville@gmail.com>
To: Perry Smith <pedzsan@gmail.com>
Cc: help-gnu-emacs@gnu.org, Jambunathan K <kjambunathan@gmail.com>
Subject: Re: re Modifying default find-grep command string
Date: Tue, 25 Oct 2011 11:24:14 -0600	[thread overview]
Message-ID: <CAPge0vwi4HvhLhwXtNr8dFtiV7eFzPzfVxhB=YLh1XKz5zkmGw@mail.gmail.com> (raw)
In-Reply-To: <7B561BFC-D6CC-41D8-ACC8-C3DF80582D96@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

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 <pedzsan@gmail.com> 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 <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:
>> >  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
>> >
>> >
>> >
>> >
>> >
>>
>> --
>>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2435 bytes --]

      reply	other threads:[~2011-10-25 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25 15:16 re Modifying default find-grep command string robert somerville
2011-10-25 16:06 ` Jambunathan K
2011-10-25 16:43   ` robert somerville
2011-10-25 16:55     ` Perry Smith
2011-10-25 17:24       ` robert somerville [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPge0vwi4HvhLhwXtNr8dFtiV7eFzPzfVxhB=YLh1XKz5zkmGw@mail.gmail.com' \
    --to=rbrt.somerville@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kjambunathan@gmail.com \
    --cc=pedzsan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).