emacs-devel
[Top][All Lists]
Advanced

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

What to do when font-lock-flush + font-lock-ensure do less than font-loc


From: Clément Pit--Claudel
Subject: What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer?
Date: Sun, 21 Feb 2016 23:55:04 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Hi emacs-devel,

IIUC the proper way in Emacs 25 to signal changes that require a 
refontification to font-lock is to call font-lock-flush. This doesn't always do 
as much as font-lock-fontify-buffer does, though.

In particular, when the font-lock-fontified variable is nil (which does happen, 
though I don't know why; I don't know what this variable is for), then calling 
font-lock-fontify buffer does refontify the whole buffer, but font-lock-flush 
and font-lock-ensure don't seem to do anything.

What's the proper way to mark a buffer for refontification (and refontify the 
visible portion) immediately in 25?

Thanks,
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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