help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Using syntax info for font-locking?


From: spamfilteraccount
Subject: Re: Using syntax info for font-locking?
Date: 28 Oct 2006 07:14:03 -0700
User-agent: G2/1.0

Dieter Wilhelm wrote:
> But
> at my state of knowledge the consequence of this "dynamic"
> font-locking means to check after *any* self inserting key the whole
> file and re-fontify it.

The process could probably be optimized by determining the smallest
possible region of the file which can be affected by the last change
and then comparing the syntactic information in this region with the
previous information and performing only those highlighting changes
which are necessary.

I imagine also the current font lock implementation performs only local
checks and doesn't refontify the whole file at every change.



reply via email to

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