all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: raman@google.com (T.V Raman)
Cc: tv.raman.tv@gmail.com, emacs-devel@gnu.org
Subject: Re: global-font-lock-mode-check-buffers: What does it do?
Date: Tue, 18 Aug 2015 01:11:24 -0400	[thread overview]
Message-ID: <jwvtwrxp4gc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <21970.4072.675256.230793@retriever.mtv.corp.google.com> (T. V. Raman's message of "Mon, 17 Aug 2015 09:46:32 -0700")

> 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	other threads:[~2015-08-18  5:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-16 21:09 global-font-lock-mode-check-buffers: What does it do? raman
2015-08-17 13:54 ` Stefan Monnier
2015-08-17 16:46   ` T.V Raman
2015-08-18  5:11     ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtwrxp4gc.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.com \
    --cc=tv.raman.tv@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.