|
From: | Ralf Angeli |
Subject: | Re: Excessive refontification when setting jit-lock-context-unfontify-pos |
Date: | Mon, 30 Apr 2007 08:33:53 +0200 |
User-agent: | Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux) |
* Stefan Monnier (2007-04-30) writes: >> 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. > > It'd probably be better to not bother with the "feature" of only > defining that macro when compiling. But in the mean time (and to work with > older Emacsen), you may want to (eval-when-compile (load "jit-lock.el")). > Yuck :-( [...] > PS: Of course you can also use your own copy of the macro. Thanks. What I did now is put the expanded contents of j-l-force-redisplay (including the code from the macros) into a compatibility function (which calls j-l-force-redisplay when available). -- Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |