unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9704: 24.0.50; need command to fontify whole buffer
@ 2011-10-08 21:09 Drew Adams
  2019-10-31 13:57 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2011-10-08 21:09 UTC (permalink / raw)
  To: 9704

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.

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-19 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'
 






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

* bug#9704: 24.0.50; need command to fontify whole buffer
  2011-10-08 21:09 bug#9704: 24.0.50; need command to fontify whole buffer Drew Adams
@ 2019-10-31 13:57 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-31 13:57 UTC (permalink / raw)
  To: Drew Adams; +Cc: 9704

"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





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

end of thread, other threads:[~2019-10-31 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 21:09 bug#9704: 24.0.50; need command to fontify whole buffer Drew Adams
2019-10-31 13:57 ` Lars Ingebrigtsen

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