[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes to emacs/lisp/progmodes/grep.el
From: |
Juri Linkov |
Subject: |
Re: Changes to emacs/lisp/progmodes/grep.el |
Date: |
Wed, 30 Jun 2004 08:16:55 +0300 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
"Eli Zaretskii" <address@hidden> writes:
>> Date: Tue, 29 Jun 2004 22:08:51 +0200
>> From: address@hidden (Daniel Pfeiffer)
>> - Is it better to delete the Escape sequences as Juri suggested and thus
>> irreversibly change the buffer contents such that it can't be rehighlighted?
>>
>> - Or do we maintain save-to-file and editability, by making the Escape
>> sequences invisible (and maybe solving the drawbacks somehow)?
>
> I missed that part of the discussion, but why not use something like
> ansi-color.el to _display_ the highlighted substrings as if they were
> on a text-mode terminal?
ansi-color.el is good for displaying highlighted substrings,
but it _deletes_ escape sequences after highlighting the substrings.
So, as Daniel pointed out, substrings can't be rehighlighted later
after saving and reloading the *grep* buffer. Moreover, ansi-color.el
conflicts with font-lock which is used to calculate column positions
of matches based on relative locations of escape sequences in grep output.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Changes to emacs/lisp/progmodes/grep.el, (continued)
- Re: Changes to emacs/lisp/progmodes/grep.el, Adrian Aichner, 2004/06/27
- Re: Changes to emacs/lisp/progmodes/grep.el, Richard Stallman, 2004/06/27
- Re: Changes to emacs/lisp/progmodes/grep.el, Miles Bader, 2004/06/27
- Re: Changes to emacs/lisp/progmodes/grep.el, David Kastrup, 2004/06/28
- Re: Changes to emacs/lisp/progmodes/grep.el, Daniel Pfeiffer, 2004/06/28
- Re: Changes to emacs/lisp/progmodes/grep.el, Eli Zaretskii, 2004/06/28
- Re: Changes to emacs/lisp/progmodes/grep.el, Daniel Pfeiffer, 2004/06/28
- Re: Changes to emacs/lisp/progmodes/grep.el, Eli Zaretskii, 2004/06/29
- Re: Changes to emacs/lisp/progmodes/grep.el, Daniel Pfeiffer, 2004/06/29
- Re: Changes to emacs/lisp/progmodes/grep.el, Eli Zaretskii, 2004/06/29
- Re: Changes to emacs/lisp/progmodes/grep.el,
Juri Linkov <=
- Re: Changes to emacs/lisp/progmodes/grep.el, Juri Linkov, 2004/06/30
- Re: Changes to emacs/lisp/progmodes/grep.el, Richard Stallman, 2004/06/30