Subject: bug#607: 23.0.60; grep -w & grep-highlight-matches

From: "G.W.Pigman III" <[email-masked]>
Date: Fri, 25 Jul 2008 07:17:36 -0700

After I add '-w' to the grep arguments, next-error in *grep* can't
open the file, apparently because some sort of terminal code is
prepended to the filename (e.g. [00m/Users/gwp/.emacs).  Oddly
enough, next-error works the first time it is called, but not
subsequently.

George Pigman
Executive Officer for the Humanities
Professor of English
208 Dabney Hall
Caltech 101-40
Pasadena, CA 91125
626-395-3601 (phone)
626-795-1664 (fax)

In GNU Emacs 23.0.60.1 (i386-apple-darwin9.4.0, GTK+ Version 2.12.4)
  of 2008-07-25 on aeneas
Windowing system distributor `The X.Org Foundation', version  
11.0.10300000
configured using `configure  '--with-gif=no''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: en_US
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: en_US
   value of $XMODIFIERS: nil
   locale-coding-system: iso-latin-1-unix
   default-enable-multibyte-characters: t

Major mode: Grep

Minor modes in effect:
   tooltip-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-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:
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <escape>
x g r e p <return> <left> <left> <left> <left> w C-e
s e t q SPC ~ / . e m a c s <return> <help-echo> <help-echo>
<help-echo> <help-echo> <down-mouse-1> <mouse-2> <down-mouse-1>
<mouse-1> <help-echo> <down-mouse-1> <mouse-2> <help-echo>
<down-mouse-1> <mouse-2> <help-echo> <escape> x r e
p o r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Grep finished (matches found)
Mark set
Quit
Mark set [2 times]
Quit
call-interactively: Beginning of buffer