[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: junk in *grep* buffers

From: Miles Bader
Subject: Re: junk in *grep* buffers
Date: Wed, 6 Apr 2005 09:32:41 +0900

On Apr 6, 2005 8:46 AM, Lute Kamstra <address@hidden> wrote:
> I've got a sneaky suspicion that something goes awry with the
> interaction between font-locking and the code in
> grep-mode-font-lock-keywords that removes the escape sequences.

That sounds likely.  The technique that grep.el uses (deleting
characters inside a font-lock expr) seems highly dodgy to me -- it
seems obvious that it will fail sometimes unless it's guaranteed that
the text to be matched only gets inserted in a controlled manner, and
there seems to be no attempt to do so.  [I suppose there may also be
some uncertainty due to the vagaries of jit-lock.]

It would seem much safer to do the translation of escape sequences to
text-properties in the process filter (maybe it could add a
`font-lock-face' property, so that the displayed result would honor

Do not taunt Happy Fun Ball.

reply via email to

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