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: Dieter Wilhelm
Subject: Re: Using syntax info for font-locking?
Date: Sat, 28 Oct 2006 17:55:56 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

spamfilteraccount@gmail.com writes:

> 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.

Yes, but what one saves in computational time is to be invested in
programming effort.

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

I guess it affects only the current line when no multi-line stuff is
involved.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

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