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

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

Re: Defer jit-lock on a per-buffer basis


From: Eli Zaretskii
Subject: Re: Defer jit-lock on a per-buffer basis
Date: Thu, 15 Nov 2012 18:55:32 +0200

> From: Tassilo Horn <address@hidden>
> Date: Thu, 15 Nov 2012 10:29:56 +0100
> 
> recently this blog post
> 
>   http://tsengf.blogspot.de/2012/11/slow-scrolling-speed-in-emacs.html
> 
> suggested to set `jit-lock-defer-time' to some small fraction to defer
> jit-lock fontification a bit.  This has an enormous effect for example
> when scrolling in large c-mode buffers.
> 
> However, most of the time I work with buffers that are rather small and
> instant fontification is fast enough.  There, deferring font-lock is
> somewhat distracting.
> 
> So is there a way to enable deferred jit-lock on a per-buffer basis?

Not without rewriting the JIT Lock code, I think.  JIT Lock goes over
all of the buffers with the same timers, so any option you customize
will affect all of the buffers.



reply via email to

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