[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: Fri, 8 Apr 2005 10:47:45 +0900

On Apr 7, 2005 11:00 PM, Juri Linkov <address@hidden> wrote:
> > Why not use the location of the text-properties added by the filter to
> > inform compile of the column?
> >
> > [What does font-lock have to do with it anyway?  Does compile use
> > font-lock these days???]
> compile uses a specification list similar to font-lock-keywords to
> specify how to highlight the keywords.  It translates this list to
> font-lock-keywords with additional code to put some compile-specific
> text-properties.  Then this list is processed by font-lock machinery.

I see; so as the font-lock mechanism is flexible enough to allow code
to be excuted for a match, it seems there should be no problem to use
special text-properties to locate the exact column of the match.

That is:

  (1) Use a process filter to translate escape sequences to text-properties

  (2) Use the normal font-lock-like matcher to locate each grep match-line

  (3) In the match-term, optionally look for the text-properties added in (1)
       to provide column information

Do not taunt Happy Fun Ball.

reply via email to

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