[Top][All Lists]

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

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

From: Julien Danjou
Subject: Re: [elpa] master 3c1f421: rainbow: fix font-lock-mode refresh
Date: Sat, 07 Mar 2015 10:38:25 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (darwin)

On Fri, Mar 06 2015, Stefan Monnier wrote:

Hi Stefan,

>> +    ;; Call font-lock-mode to refresh the buffer when used e.g. 
>> interactively
>> +    (font-lock-mode 1)))
> I'm not sure I understand why you need that.  Do you really mean that
> rainbow requires font-lock-mode to be enabled?

To work rainbow-mode needs font-lock-mode, that's for sure.
Without that change, even if font-lock-mode is activated, typing "M-x
rainbow-mode" does not refresh the buffer correctly when it's enabled or
disabled. Adding this line fixes that.

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!

Julien Danjou
;; Free Software hacker
;; http://julien.danjou.info

Attachment: signature.asc
Description: PGP signature

reply via email to

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