[Top][All Lists]

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

Re: State-machine based syntax highlighting

From: Stefan Monnier
Subject: Re: State-machine based syntax highlighting
Date: Thu, 07 Dec 2006 12:42:29 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

>> > I did a quick search and found this page
>> >
>> > with a demo xemacs package with syntax highlighting and stuff. Looked
>> > interesting.
>> Interesting.
> I wondered why they supported xemacs only, so I downloaded the source.
> Seems they wrote xemacs extensions in c which have to be compiled into
> xemacs.

> Not a usual way to extend an emacs, but probably advantageous from a
> performance point of view.

> The idea already occured to me that font locking should be implemented
> in pure c in emacs for speed, but I guess it's kind of against the
> extensible editor concept or something.

Actually, font-locking *is* implemented in C.  The elisp part usually takes
a negligible amount of time.  The problem start appearing when the
functionality of the C code is not sufficient and you start trying to parse
the code in elisp, which is slow.


reply via email to

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