[Top][All Lists]

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

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

From: Kevin Rodgers
Subject: Re: M-x grep prompt: fill in the * for us
Date: Thu, 19 Jun 2003 10:43:11 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Hanak David wrote:

On Thu, 19 Jun 2003, Johan Bockgård wrote:
Kevin Rodgers <address@hidden> writes:
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.

Even though the doc string doesn't mention it, the file name pattern defaults
as desired as well (when a prefix arg is specified).

<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>

reply via email to

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