bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-x grep prompt: fill in the * for us


From: Hanak David
Subject: Re: M-x grep prompt: fill in the * for us
Date: Thu, 19 Jun 2003 10:39:04 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

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

> Kevin Rodgers <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]