emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-maximum-size


From: Alan Mackenzie
Subject: Re: font-lock-maximum-size
Date: Mon, 17 Oct 2011 14:00:03 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hi, Yidong.

On Mon, Oct 17, 2011 at 05:19:21AM -0400, Chong Yidong wrote:
>   font-lock-maximum-size is a variable defined in `font-lock.el'.
>   Its value is 256000

>   Documentation:
>   Maximum size of a buffer for buffer fontification.
>   Only buffers less than this can be fontified when Font Lock mode is
>   turned on.

> Looks like this variable doesn't work, and hasn't worked for a long
> time.  It nothing when JIT lock mode is in use, and since fast-lock and
> lazy-lock are obsolete, it's pretty useless.  (Anyway, source files
> larger than 250K are not uncommon.)

Doesn't it work when no font-lock-support-mode is in operation?

> If there are no objections, I am going to mark it as deprecated, and
> remove it from the manual.

I don't object - even if it were still operational, modern PCs are so
fast now that f-l-max-size would have to be so big to be sensible that it
would exceed the size of nearly all source code buffers.

However, please don't ever downplay the usefulness of (eq
f-l-support-mode nil).  This is very useful for debugging f-l-keywords,
etc., and also works well when jit-lock doesn't - I've had quite a few
problems with font lock over the years, many of them being caused by a
jit-lock chunk starting in the middle of a (largish) syntactical
construct.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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