unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer?
@ 2016-02-22  4:55 Clément Pit--Claudel
  2016-02-22  8:56 ` Anders Lindgren
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Clément Pit--Claudel @ 2016-02-22  4:55 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-04-10 20:10 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22  4:55 What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer? Clément Pit--Claudel
2016-02-22  8:56 ` Anders Lindgren
2016-02-22 13:49   ` Clément Pit--Claudel
2016-02-22 15:53     ` Anders Lindgren
2016-02-22 16:13 ` Eli Zaretskii
2016-02-22 16:29   ` Clément Pit--Claudel
2016-02-22 16:35     ` Kaushal Modi
2016-02-22 16:40     ` Eli Zaretskii
2016-02-22 17:28       ` Clément Pit--Claudel
2016-02-23 16:57         ` Eli Zaretskii
2016-02-23 18:08           ` Clément Pit--Claudel
2016-02-24  3:52 ` Stefan Monnier
2016-02-24 17:12   ` Eli Zaretskii
2016-02-24 18:55     ` Stefan Monnier
2016-02-24 19:17       ` Eli Zaretskii
2016-02-24 20:09         ` Stefan Monnier
2016-04-09 18:59           ` Clément Pit--Claudel
2016-04-09 19:37             ` Eli Zaretskii
2016-04-09 19:54               ` Clément Pit--Claudel
2016-04-10 20:10             ` Stefan Monnier
     [not found]     ` <<jwv1t829byc.fsf-monnier+emacs@gnu.org>
     [not found]       ` <<838u29hq9x.fsf@gnu.org>
2016-02-24 19:20         ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).