From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: M-x grep prompt: fill in the * for us Date: Thu, 19 Jun 2003 10:43:11 -0600 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3EF1E81F.5010801@yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1056043125 29844 80.91.224.249 (19 Jun 2003 17:18:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 17:18:45 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 19 19:18:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19T33Z-0007kz-00 for ; Thu, 19 Jun 2003 19:18:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19T2oV-0001hk-Vo for gnu-bug-gnu-emacs@m.gmane.org; Thu, 19 Jun 2003 13:03:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19T2ng-0001KK-N8 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 19 Jun 2003 13:02:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19T2Ue-0004o6-4s for bug-gnu-emacs@prep.ai.mit.edu; Thu, 19 Jun 2003 12:42:38 -0400 Original-Received: from horus.isnic.is ([193.4.58.12]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19T2UY-0004aj-Ku for bug-gnu-emacs@prep.ai.mit.edu; Thu, 19 Jun 2003 12:42:30 -0400 Original-Received: from mail.fu-berlin.de (root@mail.fu-berlin.de [160.45.11.165]) by horus.isnic.is (8.12.9/8.12.9/isnic) with ESMTP id h5JGgSgO092340 for ; Thu, 19 Jun 2003 16:42:29 GMT (envelope-from ihs_4664@yahoo.com) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 19 Jun 2003 18:42:27 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 19 Jun 2003 18:42:27 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 26 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1056040947 23736902 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-MIME-Autoconverted: from 8bit to quoted-printable by horus.isnic.is id h5JGgSgO092340 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5348 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5348 Hanak David wrote: > On Thu, 19 Jun 2003, Johan Bockg=E5rd wrote: >>Kevin Rodgers 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. >=20 > Not really. >=20 > ,----[ 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). > `---- >=20 > Dan's request deals with the filename, not with the pattern. Even though the doc string doesn't mention it, the file name pattern defa= ults as desired as well (when a prefix arg is specified). --=20 Kevin Rodgers