emacs-devel
[Top][All Lists]
Advanced

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

Re: Excessive refontification when setting jit-lock-context-unfontify-po


From: Ralf Angeli
Subject: Re: Excessive refontification when setting jit-lock-context-unfontify-pos
Date: Sat, 28 Apr 2007 17:27:54 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux)

* Stefan Monnier (2007-04-27) writes:

>            (run-with-timer 0 nil 'jit-lock-force-redisplay
>                            (current-buffer) start orig-start))
>
> So in your case you can either use
> jit-lock-after-change-extend-region-functions; or you can use a similar
> run-with-timer in your font-lock-fontify-region-function.  If you look at
> jit-lock-force-redisplay, you'll see that it should not cause infinite
> looping because it only causes redisplay (like C-l would) but not
> re-highlighting.

By the way, `jit-lock-force-redisplay' uses the macro
`with-buffer-prepared-for-jit-lock' which is only defined when
jit-lock.el is being compiled.  Is there a way to use that macro from
outside of jit-lock.el?  A `(require 'jit-lock)' does not help.

-- 
Ralf




reply via email to

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