emacs-devel
[Top][All Lists]
Advanced

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

Re: Major modes using `widen' is a good, even essential, programming pra


From: Eli Zaretskii
Subject: Re: Major modes using `widen' is a good, even essential, programming practice.
Date: Sun, 07 Aug 2022 17:20:52 +0300

> Date: Sun, 7 Aug 2022 14:13:36 +0000
> Cc: emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> > jit-lock-functions is an API, with a contract.  CC Mode decided to break 
> > that contract.
> 
> Where, exactly are the terms of this supposed contract formulated?  And
> which part of this supposed contract has CC Mode broken?

jit-lock calls the functions with two arguments, BEG and END, and
expects them to work only on that chunk of text.

> If you find CC Mode too sluggish for you (I don't), then configure it to
> be faster and inaccurate by setting font-lock-maximum-decoration.

It doesn't help, IME.  The mode is still slow.



reply via email to

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