emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs revision #107149


From: Stefan Monnier
Subject: Re: Emacs revision #107149
Date: Mon, 13 Feb 2012 17:18:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

> I Don't understand.  Why is the forcing of immediate fontification ever
> necessary?  That's what JIT lock does, isn't it?

JIT lock is only involved when the buffer is displayed directly.
In htmlfontify or ps-print, we need to fontify the buffer even if it's
not displayed because the output (HTML or Postscript) wants to include
the fact info that font-lock adds.

In the mm-view case it's similar: the buffer itself is not displayed,
instead its content is copied into some other buffer (which uses
another major-mode).  We could setup this other buffer so that jit-lock
there is redirected to apply font-lock to the internal buffer after
which the result is copied back into the displayed buffer, but instead
mm-view just font-locks the whole buffer eagerly, which is simpler, tho
it loses the laziness of jit-lock.


        Stefan



reply via email to

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