emacs-devel
[Top][All Lists]
Advanced

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

Re: [elpa] master 3c1f421: rainbow: fix font-lock-mode refresh


From: Stefan Monnier
Subject: Re: [elpa] master 3c1f421: rainbow: fix font-lock-mode refresh
Date: Mon, 09 Mar 2015 00:09:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> So that's the only way we found to refresh the current fontification of
> a buffer with font-lock-mode. If there's a better way, let me know!

To cause font-lock to refresh some part of the buffer (typically the
whole buffer, after changing the font-lock-keywords), the (new)
recommended way is to use font-lock-flush.

Note that this is orthogonal to enabling/disabling font-lock-mode (IOW
font-lock-flush won't do anything if font-lock-mode is disabled).


        Stefan



reply via email to

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