From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: [elpa] master 3c1f421: rainbow: fix font-lock-mode refresh
Date: Mon, 09 Mar 2015 00:09:08 -0400 [thread overview]
Message-ID: <jwv7fuqervd.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <m2ioed2lm6.fsf@danjou.info> (Julien Danjou's message of "Sat, 07 Mar 2015 10:38:25 +0100")
> 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
prev parent reply other threads:[~2015-03-09 4:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150306160149.10234.93321@vcs.savannah.gnu.org>
[not found] ` <E1YTuhB-0002fg-Id@vcs.savannah.gnu.org>
2015-03-07 0:16 ` [elpa] master 3c1f421: rainbow: fix font-lock-mode refresh Stefan Monnier
2015-03-07 9:38 ` Julien Danjou
2015-03-07 12:48 ` Artur Malabarba
2015-03-09 4:10 ` Stefan Monnier
2015-03-09 4:09 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv7fuqervd.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.