From eric.hanchrow@gmail.com Wed Aug 19 20:18:03 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Aug 2009 03:18:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7K3I2Mk020306 for ; Wed, 19 Aug 2009 20:18:03 -0700 Received: from mx10.gnu.org ([199.232.76.166]:47684) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MdyA5-0000TO-0a for emacs-pretest-bug@gnu.org; Wed, 19 Aug 2009 23:18:01 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MdyA3-0003iC-7B for emacs-pretest-bug@gnu.org; Wed, 19 Aug 2009 23:18:00 -0400 Received: from smtp61.avvanta.com ([206.124.128.61]:39891 helo=mail.avvanta.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MdyA1-0003h6-TJ for emacs-pretest-bug@gnu.org; Wed, 19 Aug 2009 23:17:58 -0400 Received: from mail.avvanta.com (localhost.drteeth.p.blarg.net [127.0.0.1]) by mail.avvanta.com (Postfix) with ESMTP id 16D17F394E for ; Wed, 19 Aug 2009 20:17:49 -0700 (PDT) Received: from debian.domain.actdsltmp (q-static-138-125.avvanta.com [206.124.138.125]) by mail.avvanta.com (Postfix) with ESMTP id E9ECFF3935 for ; Wed, 19 Aug 2009 20:17:48 -0700 (PDT) Received: from erich by debian.domain.actdsltmp with local (Exim 4.69) (envelope-from ) id 1MdyCJ-0005hZ-Te for emacs-pretest-bug@gnu.org; Wed, 19 Aug 2009 20:20:19 -0700 From: Eric Hanchrow To: emacs-pretest-bug@gnu.org Subject: 23.1.50; lgrep chooses silly default value for file extension Date: Wed, 19 Aug 2009 19:20:33 -0700 Message-ID: <87fxbnkyz2.fsf@debian.domain.actdsltmp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BlargAV-Status: No viruses detected, BlargAV v1.1 on localhost.drteeth.p.blarg.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I visited a python file C-x C-f ~ / l o c TAB RET b i n RET . p y RET (I happen to have a bunch of python files in ~/local/bin, and I have ido-mode turned on) I cloned the buffer: C-x 4 c I used lgrep to search: ESC x l g r e p RET ^ c l a s s RET RET RET At this point I was looking at a *grep* buffer like this: -*- mode: grep; default-directory: "~/local/bin/" -*- Grep started at Wed Aug 19 19:17:41 grep -i -nH -e \^class *.py<2> /bin/bash: -c: line 0: syntax error near unexpected token `2' /bin/bash: -c: line 0: `grep -i -nH -e \^class *.py<2>' Grep exited abnormally with code 2 at Wed Aug 19 19:17:41 Naturally the "grep" command should have been grep -i -nH -e \^class *.py i.e., the "<2>" shouldn't have been put in there. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/src/emacs/etc/DEBUG for instructions. In GNU Emacs 23.1.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-08-17 on debian Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Python Minor modes in effect: shell-dirtrack-mode: t erc-list-mode: t erc-menu-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-autojoin-mode: t erc-log-mode: t erc-services-mode: t erc-networks-mode: t global-auto-revert-mode: t display-time-mode: t tooltip-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: Making completion list... prep-new-frame: considering #; SSH_TTY is /dev/pts/0 When done with this frame, type C-x 5 0 Corrections: displays displays display misplays displace displease dispels splays Mark set prep-new-frame: considering #; SSH_TTY is /dev/pts/5 When done with this frame, type C-x 5 0 Quit Loading tramp...done Grep exited abnormally with code 2 Load-path shadows: ~/.emacs.d/custom hides /usr/local/src/emacs/lisp/custom -- If there were a little guy running around inside the computer executing our programs, he would probably have as long and plaintive a tale to tell about his job as a federal government employee. -- Paul Graham From eric.hanchrow@gmail.com Fri Aug 21 07:09:14 2009 Received: (at 4210) by emacsbugs.donarmstrong.com; 21 Aug 2009 14:09:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.6 required=4.0 tests=AWL,IMPRONONCABLE_2, MURPHY_DRUGS_REL8,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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= MIME-Version: 1.0 Received: by 10.90.176.16 with SMTP id y16mr974131age.52.1250863747194; Fri, 21 Aug 2009 07:09:07 -0700 (PDT) Date: Fri, 21 Aug 2009 07:09:07 -0700 Message-ID: <36366a980908210709kccb44b5ld828def25f0f34ea@mail.gmail.com> Subject: patch From: Eric Hanchrow To: 4210@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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))) From geb-bug-gnu-emacs@m.gmane.org Sun Aug 23 11:03:25 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Aug 2009 18:03:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7NI3Mda007106 for ; Sun, 23 Aug 2009 11:03:24 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfHPW-0000bJ-1S for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 14:03:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfHPR-0000VI-Nd for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 14:03:21 -0400 Received: from [199.232.76.173] (port=44039 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfHPR-0000Uy-GP for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 14:03:17 -0400 Received: from lo.gmane.org ([80.91.229.12]:41826) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfHPQ-0005kG-PP for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 14:03:17 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MfHPM-0001Q6-JM for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 20:03:12 +0200 Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Aug 2009 20:03:12 +0200 Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Aug 2009 20:03:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Subject: Re: bug#4210: 23.1.50; lgrep chooses silly default value for file extension Date: Sun, 23 Aug 2009 12:02:51 -0600 Lines: 72 Message-ID: References: <87fxbnkyz2.fsf@debian.domain.actdsltmp> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <87fxbnkyz2.fsf@debian.domain.actdsltmp> Sender: news Cc: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Eric Hanchrow wrote: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > I visited a python file > > C-x C-f ~ / l o c TAB RET b i n RET . p y RET > > (I happen to have a bunch of python files in ~/local/bin, and I have > ido-mode turned on) > > I cloned the buffer: > > C-x 4 c > > I used lgrep to search: > > ESC x l g r e p RET ^ c l a s s RET RET RET > > > At this point I was looking at a *grep* buffer like this: > > -*- mode: grep; default-directory: "~/local/bin/" -*- > Grep started at Wed Aug 19 19:17:41 > > grep -i -nH -e \^class *.py<2> > /bin/bash: -c: line 0: syntax error near unexpected token `2' > /bin/bash: -c: line 0: `grep -i -nH -e \^class *.py<2>' > > Grep exited abnormally with code 2 at Wed Aug 19 19:17:41 > > Naturally the "grep" command should have been > > grep -i -nH -e \^class *.py > > i.e., the "<2>" shouldn't have been put in there. 2009-08-23 Kevin Rodgers * progmodes/grep.el (grep-read-files): Strip trailing from buffer names not visiting a file (e.g. cloned buffers). *** grep.el~ Sun Aug 23 11:51:39 2009 --- grep.el Sun Aug 23 11:52:37 2009 *************** *** 747,753 **** (defun grep-read-files (regexp) "Read files arg for interactive grep." ! (let* ((bn (or (buffer-file-name) (buffer-name))) (fn (and bn (stringp bn) (file-name-nondirectory bn))) --- 747,754 ---- (defun grep-read-files (regexp) "Read files arg for interactive grep." ! (let* ((bn (or (buffer-file-name) ! (replace-regexp-in-string "<[0-9]+>\\'" "" (buffer-name)))) (fn (and bn (stringp bn) (file-name-nondirectory bn))) -- Kevin Rodgers Denver, Colorado, USA From juri@jurta.org Sun Aug 30 16:48:17 2009 Received: (at 4210-done) by emacsbugs.donarmstrong.com; 30 Aug 2009 23:48:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out2.starman.ee [85.253.0.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7UNmGiw029180 for <4210-done@emacsbugs.donarmstrong.com>; Sun, 30 Aug 2009 16:48:17 -0700 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.28.7.cable.starman.ee [82.131.28.7]) by mx2.starman.ee (Postfix) with ESMTP id 8C0E43F41F0; Mon, 31 Aug 2009 02:48:10 +0300 (EEST) From: Juri Linkov To: Kevin Rodgers Cc: 4210-done@debbugs.gnu.org Subject: Re: bug#4210: 23.1.50; lgrep chooses silly default value for file extension Organization: JURTA References: <87fxbnkyz2.fsf@debian.domain.actdsltmp> Date: Mon, 31 Aug 2009 02:47:54 +0300 In-Reply-To: (Kevin Rodgers's message of "Sun, 23 Aug 2009 12:02:51 -0600") Message-ID: <87my5g50et.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Thank you. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Sat Jun 21 10:43:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 28 Sep 2009 14:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator