emacs-devel
[Top][All Lists]
Advanced

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

Re: global-font-lock-mode-check-buffers: What does it do?


From: Stefan Monnier
Subject: Re: global-font-lock-mode-check-buffers: What does it do?
Date: Tue, 18 Aug 2015 01:11:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> But I still cant tell what it does after looking at the code where it
> is generated. Also, why is it placed on post-command-hook -- given
> that jit-lock is already attached to after-change-functions?

As mentioned, it's created by define-globalized-minor-mode, i.e. code
which works for any minor mode.  It knows nothing about jit-lock's
own hooks.

What it does is check whether some newly created buffer might need
font-lock enabled.


        Stefan


> Stefan Monnier writes:
>> > I see that global-font-lock-mode-check-buffers is present in
>> > post-command-hook  -- that function appears to get defined
>> > automagically in font-core.el
>> 
>> It's defined by the call to define-globalized-minor-mode.
>> 
>> 
>> Stefan

> -- 

> -- 



reply via email to

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