GNU bug report logs - #9704
24.0.50; need command to fontify whole buffer

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 8 Oct 2011 21:10:01 UTC

Severity: wishlist

Tags: fixed

Found in version 24.0.50

Fixed in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: bug-gnu-emacs <at> gnu.org, 9704 <at> debbugs.gnu.org
Subject: Re: 24.0.50; need command to fontify whole buffer
Date: Thu, 31 Oct 2019 14:57:20 +0100
"Drew Adams" <drew.adams <at> 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




This bug report was last modified 5 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.