[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-x grep: broken buffer with pipes
From: |
Juri Linkov |
Subject: |
Re: M-x grep: broken buffer with pipes |
Date: |
Thu, 31 Dec 2009 03:08:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) |
>> You can customize `grep-highlight-matches' to the value `always'
>> if you are content with the problems it might cause like
>> http://thread.gmane.org/gmane.emacs.devel/83316
>
> this happens with "emacs -q".
> i.e., the default value of this variable is incorrect.
>
> indeed, when I customize this variable to nil, the problem goes away.
The current default `auto' is chosen to cause less problems than
with the value `always'.
>> I guess these escape sequences come from the grep switch --color that
>> outputs them around the matched strings. However, I can't reproduce your
>> problem. When I click on the file name that lacks of match highlighting,
>> it still visits the source file. What grep version do you have?
>
> grep (GNU grep) 2.5.1
GNU grep 2.5.1 uses a different method of match highlighting.
grep 2.5.1 relies on the environment variable `GREP_COLOR'
whereas grep 2.5.2 and later use the variable `GREP_COLORS'.
However, when I tried to reproduce this with GNU grep 2.5.1,
it still correctly visits the source file. So I don't understand
what it going on. Anyone else can reproduce this problem?
--
Juri Linkov
http://www.jurta.org/emacs/