bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#33798: 27.0.50; font-lock-ensure fontifies the whole buffer


From: Juri Linkov
Subject: bug#33798: 27.0.50; font-lock-ensure fontifies the whole buffer
Date: Wed, 19 Dec 2018 02:15:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> (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.





reply via email to

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