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

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

bug#9704: 24.0.50; need command to fontify whole buffer


From: Lars Ingebrigtsen
Subject: bug#9704: 24.0.50; need command to fontify whole buffer
Date: Thu, 31 Oct 2019 14:57:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Drew Adams" <drew.adams@oracle.com> writes:

>>From emacs-devel thread "command to fontify whole buffer":
>
>> From: Stefan Monnier Sent: Thursday, September 22, 2011 9:23 PM
>> > Sometimes I want to fontify a whole buffer (really).  One 
>> > use case is to be able to then use the fontification for other (e.g. code)
>> > purposes than visual highlighting.
>> 
>> Agreed.  We need two functions:
>>
>> - font-lock-flush-region (which marks the region for 
>>   re-fontification).
>> - font-lock-ensure-region (which makes sure the region is fontified).
>>
>> The functions we have were designed before lazy/jit lock and were
>> adjusted in ad-hoc ways when jit/lazy was added.

font-lock-flush and font-lock-ensure has existed since 25.1, so I'm
closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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