On Apr 7, 2005 11:00 PM, Juri Linkov <[EMAIL PROTECTED]> 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

-miles
-- 
Do not taunt Happy Fun Ball.


_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to