From: Juri Linkov <juri@linkov.net>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 33798@debbugs.gnu.org
Subject: bug#33798: 27.0.50; font-lock-ensure fontifies the whole buffer
Date: Wed, 19 Dec 2018 02:15:14 +0200 [thread overview]
Message-ID: <87y38mwewd.fsf@mail.linkov.net> (raw)
In-Reply-To: <jwvpntyfl2r.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 18 Dec 2018 18:54:33 -0500")
>> (with-temp-buffer
>> (insert "#include <stdio.h>\n\nmain()\n{\n printf(\"Hello, world\");\n}")
>> (c-mode)
>> (font-lock-ensure 21 (point-max))
>> (get-text-property (point-min) 'face))
>
> Is this testcase representative of what diff-mode does?
I can see the same effect in internal buffers created by diff-mode:
switching to these buffers I see that font-lock-ensure fontifies
the whole buffer, whereas using font-lock-fontify-region I see only
small parts of the source buffer fontified corresponding to diff hunks.
next prev parent reply other threads:[~2018-12-19 0:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-18 22:15 bug#33798: 27.0.50; font-lock-ensure fontifies the whole buffer Juri Linkov
2018-12-18 23:54 ` Stefan Monnier
2018-12-19 0:15 ` Juri Linkov [this message]
2018-12-19 4:27 ` Stefan Monnier
2018-12-19 21:56 ` Juri Linkov
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=87y38mwewd.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=33798@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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.