[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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]