unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4210: 23.1.50; lgrep chooses silly default value for file extension
@ 2009-08-20  2:20 ` Eric Hanchrow
  2009-08-23 18:02   ` Kevin Rodgers
  2009-08-30 23:55   ` bug#4210: marked as done (23.1.50; lgrep chooses silly default value for file extension) Emacs bug Tracking System
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Hanchrow @ 2009-08-20  2:20 UTC (permalink / raw)
  To: emacs-pretest-bug


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 #<frame F4 0x9755a38>; 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 #<frame F5 0x97c7748>; 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






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4210: 23.1.50; lgrep chooses silly default value for file extension
  2009-08-20  2:20 ` bug#4210: 23.1.50; lgrep chooses silly default value for file extension Eric Hanchrow
@ 2009-08-23 18:02   ` Kevin Rodgers
  2009-08-30 23:55   ` bug#4210: marked as done (23.1.50; lgrep chooses silly default value for file extension) Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2009-08-23 18:02 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: emacs-pretest-bug

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  <kevin.d.rodgers@gmail.com>

	* progmodes/grep.el (grep-read-files): Strip trailing <N> 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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4210: marked as done (23.1.50; lgrep chooses silly default value for file extension)
  2009-08-20  2:20 ` bug#4210: 23.1.50; lgrep chooses silly default value for file extension Eric Hanchrow
  2009-08-23 18:02   ` Kevin Rodgers
@ 2009-08-30 23:55   ` Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-08-30 23:55 UTC (permalink / raw)
  To: Juri Linkov

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

Your message dated Mon, 31 Aug 2009 02:47:54 +0300
with message-id <87my5g50et.fsf@mail.jurta.org>
and subject line Re: bug#4210: 23.1.50; lgrep chooses silly default value for file extension
has caused the Emacs bug report #4210,
regarding 23.1.50; lgrep chooses silly default value for file extension
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4210: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4210
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5785 bytes --]

From: Eric Hanchrow <eric.hanchrow@gmail.com>
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>


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 #<frame F4 0x9755a38>; 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 #<frame F5 0x97c7748>; 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



[-- Attachment #3: Type: message/rfc822, Size: 1556 bytes --]

From: Juri Linkov <juri@jurta.org>
To: Kevin Rodgers <kevin.d.rodgers@gmail.com>
Cc: 4210-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4210: 23.1.50; lgrep chooses silly default value for file extension
Date: Mon, 31 Aug 2009 02:47:54 +0300
Message-ID: <87my5g50et.fsf@mail.jurta.org>

Thank you.

-- 
Juri Linkov
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-30 23:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87my5g50et.fsf@mail.jurta.org>
2009-08-20  2:20 ` bug#4210: 23.1.50; lgrep chooses silly default value for file extension Eric Hanchrow
2009-08-23 18:02   ` Kevin Rodgers
2009-08-30 23:55   ` bug#4210: marked as done (23.1.50; lgrep chooses silly default value for file extension) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).