unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Hanak David <dhanak@inf.bme.hu>
Subject: Re: M-x grep prompt: fill in the * for us
Date: Thu, 19 Jun 2003 10:39:04 +0200	[thread overview]
Message-ID: <m2d6hajwbb.fsf@maui.hanak.hu> (raw)
In-Reply-To: <mailman.8208.1055981544.21513.bug-gnu-emacs@gnu.org>

On Thu, 19 Jun 2003, Johan Bockgård wrote:

> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>
>> Dan Jacobson wrote:
>>
>>> How about when prompting for M-x grep,
>>>     Run grep (like this): grep -n -e
>>> You instead prompt with
>>>     Run grep (like this): grep -n -e X *
>>
>> Even better would be *.foo, where foo is the extension of the visited file.
>
> And that's what C-u M-x grep already does.

Not really.

,----[ C-h f grep RET ]
| [...]
| A prefix argument says to default the argument based upon the current
| tag the cursor is over, substituting it into the last grep command
| in the grep command history (or into `grep-command'
| if that history list is empty).
`----

Dan's request deals with the filename, not with the pattern.

David

  parent reply	other threads:[~2003-06-19  8:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8194.1055972915.21513.bug-gnu-emacs@gnu.org>
2003-06-18 23:43 ` M-x grep prompt: fill in the * for us Kevin Rodgers
     [not found] ` <mailman.8205.1055979983.21513.bug-gnu-emacs@gnu.org>
2003-06-19  0:09   ` Johan Bockgård
2003-06-19  5:05     ` Dan Jacobson
     [not found]     ` <mailman.8224.1056013350.21513.bug-gnu-emacs@gnu.org>
2003-06-19 17:44       ` Kevin Rodgers
2003-06-19 21:41         ` Dan Jacobson
     [not found]         ` <mailman.8311.1056096299.21513.bug-gnu-emacs@gnu.org>
2003-06-20 14:25           ` Kevin Rodgers
     [not found]   ` <mailman.8208.1055981544.21513.bug-gnu-emacs@gnu.org>
2003-06-19  8:39     ` Hanak David [this message]
     [not found]     ` <mailman.8223.1056011968.21513.bug-gnu-emacs@gnu.org>
2003-06-19 16:43       ` Kevin Rodgers
2003-06-18 18:18 Dan Jacobson

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=m2d6hajwbb.fsf@maui.hanak.hu \
    --to=dhanak@inf.bme.hu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).