From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: bug#4210: patch Date: Fri, 21 Aug 2009 07:09:07 -0700 Message-ID: <36366a980908210709kccb44b5ld828def25f0f34ea@mail.gmail.com> Reply-To: Eric Hanchrow , 4210@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250864860 5546 80.91.229.12 (21 Aug 2009 14:27:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 14:27:40 +0000 (UTC) To: 4210@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 16:27:33 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeV5Y-0005jy-VX for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 16:27:33 +0200 Original-Received: from localhost ([127.0.0.1]:35357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeV5Y-000492-A8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 10:27:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeV54-0003xA-JT for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 10:27:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeV4z-0003w6-MK for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 10:27:02 -0400 Original-Received: from [199.232.76.173] (port=40934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeV4z-0003vu-Ae for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 10:26:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34715) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeV4y-0006op-EH for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 10:26:56 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7LEQprt016047; Fri, 21 Aug 2009 07:26:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7LEF6GX013984; Fri, 21 Aug 2009 07:15:06 -0700 Resent-Date: Fri, 21 Aug 2009 07:15:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eric Hanchrow Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 21 Aug 2009 14:15:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4210 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4210-submit@emacsbugs.donarmstrong.com id=B4210.125086375412854 (code B ref 4210); Fri, 21 Aug 2009 14:15:06 +0000 Original-Received: (at 4210) by emacsbugs.donarmstrong.com; 21 Aug 2009 14:09:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-gx0-f214.google.com (mail-gx0-f214.google.com [209.85.217.214]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7LE9CHb012847 for <4210@emacsbugs.donarmstrong.com>; Fri, 21 Aug 2009 07:09:14 -0700 Original-Received: by gxk10 with SMTP id 10so1168051gxk.21 for <4210@emacsbugs.donarmstrong.com>; Fri, 21 Aug 2009 07:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=jXVfSxsjLLv5DabvxtCJ7dwOqVnylRQJxCB1GkHp1+k=; b=PnXDb8w3VFdtMExdmLlMhGfNG1D0lnpFAF9EnKyqG2v7a/fDEY8ZxLCNFPRRaK6W+i F9MEgAtURiHcIzCVI0oqiPIdM6EfjT1cIOkZAHT0byhFiA2jFRUSzaYfzcMw9FwsOzbR cMcf6OjVqi+6N4VdQb6bFhQuCxMQN/NXvbDyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=qyPor6S16z8akTYKDM66CF5tU6mTweS+AKJjd9XWwVlph0op4PsfGOxb1n1W3RiuBb w27KmEMMihqjkENDqnMXyPzxH25h55Ykn0F9m6gL9VY6R8vCWy+l7K0ETGsqx0hWkdyz bRQs248em7AFKYNKexS60rJ3LVhBELDhCfsJ8= Original-Received: by 10.90.176.16 with SMTP id y16mr974131age.52.1250863747194; Fri, 21 Aug 2009 07:09:07 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 21 Aug 2009 10:27:01 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30435 Archived-At: This fixes it for me: commit cbe538a4b0c80348b3a43b2a16c7d9cca1177b97 Author: Eric Hanchrow Date: Wed Aug 19 22:28:31 2009 -0700 grep-read-files: consult (buffer-name (buffer-base-buffer)), not just (buffer-name). diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 9e63c1d..a1a89d0 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -747,7 +747,7 @@ substitution string. Note dynamic scoping of variables.") (defun grep-read-files (regexp) "Read files arg for interactive grep." - (let* ((bn (or (buffer-file-name) (buffer-name))) + (let* ((bn (or (buffer-file-name) (buffer-name (buffer-base-buffer)))) (fn (and bn (stringp bn) (file-name-nondirectory bn)))