unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* M-x grep: broken buffer with pipes
@ 2009-12-30 20:06 Sam Steingold
  2009-12-31  0:32 ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Steingold @ 2009-12-30 20:06 UTC (permalink / raw)
  To: emacs-devel

For specificity, visit the emacs/lisp/grep.el file and do
M-x grep RET 'defvar.*buffer' *.el RET
(I.e., the shell command is "grep -nH -e 'defvar.*buffer' *.el").
the *grep* buffer contains about 50 matches, each clickable,
and a line typically looks like
<file>:<line>:(<defvar foo-buffer>-zot nil
where <file> is green, <line> is reddish, <defvar foo-buffer> is yellow.
Everything is great, clicking on the file name visits the file.

Now, in the same grep.el buffer, do this:
M-x grep RET 'defvar.*buffer' *.el | grep -v '"' RET
(the shell command is "grep -nH -e 'defvar.*buffer' *.el | grep -v '"'")
The *grep* buffer now contains (correctly) about 10% fewer matches, and <file> 
and <line> are still good, but the <defvar foo-buffer> part is no longer yellow.
That lack of match highlighting is not a big deal, however, there is a hugely 
more horrible problem: one cannot click on the file name to visit the file.
When you click on the file name, the file selection menu appears, with the 
default being ^[[K<file> where "^[" stands for the escape character (ESC (27, 
#o33, #x1b)) and <file> is the file name you clicked on.
So, where do these 3 spurious characters (ESC [ K) come from?





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

end of thread, other threads:[~2009-12-31  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30 20:06 M-x grep: broken buffer with pipes Sam Steingold
2009-12-31  0:32 ` Juri Linkov
2009-12-31  0:50   ` Sam Steingold
2009-12-31  1:08     ` Juri Linkov

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).