[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 <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
Re: M-x grep prompt: fill in the * for us,
Hanak David <=
Re: M-x grep prompt: fill in the * for us, Kevin Rodgers, 2003/06/19