unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: FCC <fcc509@netscape.net>
Subject: Re: META-x grep question
Date: Wed, 21 Apr 2004 16:20:28 +0200	[thread overview]
Message-ID: <c6603r$7f0$1@defalla.upc.es> (raw)
In-Reply-To: <4086133a$0$1116$4d4eb98e@news.dk.uu.net>

Brian Johansen wrote:
> Roodwriter@core.com wrote:
> 
>> Brian Johansen wrote:
>>
>>
>>> Hi !
>>>
>>> Does anyone know how to change the default arguments when using the grep
>>> command within emacs ??
>>> When choosing META-x grep
>>> It defaults to grep -n -e
>>> and I want it to: grep -n -e <search text> '*.[ch]'
>>> and possibly set the cursor at <search text> ready for input.
>>>
>>> Is that possible ?? and how ?
>>>
>>> regards
>>>
>>> Brian
>>
>>
>>
>> I also changed the default. It's in the customization screens under 
>> "Options." Wish I could remember exactly where.
>> --Rod
>>
>> __________
>>
>> Author of "Linux for Non-Geeks--Clear-eyed Answers for Practical 
>> Consumers" and "Boring Stories from Uncle Rod." Both are available at 
>> http://www.rodwriterpublishing.com/index.html
>>
>> To reply by e-mail, take the extra "o" out of the name.
>>
> Thanks ! That works !
> Do you know if one could put it in the .emacs file instead ??
> 
> BR
> 
> Brian
I have in my _emacs file a section called custom-set variables, and 
there I have many entries along with:

'(grep-command "grep --regexp=\"\\B!.*\" --only-matching --no-filename 
FNAME.f90")

which basically displays all the comments in file FNAME.f90. You can 
edit anything inside "".

FCC.

  reply	other threads:[~2004-04-21 14:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <40850130$0$1123$4d4eb98e@news.dk.uu.net>
     [not found] ` <108aqvfer3ne6ab@corp.supernews.com>
2004-04-21  6:22   ` META-x grep question Brian Johansen
2004-04-21 14:20     ` FCC [this message]
2004-04-21 21:53       ` Michael Slass
2004-04-22  6:49         ` Brian Johansen
2004-04-27 13:35           ` John Russell

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='c6603r$7f0$1@defalla.upc.es' \
    --to=fcc509@netscape.net \
    /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).