* global-font-lock-mode-check-buffers: What does it do?
@ 2015-08-16 21:09 raman
2015-08-17 13:54 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: raman @ 2015-08-16 21:09 UTC (permalink / raw)
To: emacs-devel; +Cc: tv.raman.tv
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 - at least that's where find-function
jumps when asked about that function. It's present in the .elc file,
but not in font-core.el so I guess it's getting generated through a
macro call -- haven't found where though.
The function has no doc string.
Am looking to see what it does while trying to debug a problem with
Emacspeak's voice-lock in Info mode buffers.
Background:
emacspeak attaches property 'personality to match Emacs' font-locking
to produce audio-formatted output. It works everywhere but has stopped
working in Info buffers:
1. When I open an Info node for the first time, voice-lock is applied
correctly and I hear all the voice changes.
2. Subsequently -- if I perform any command in that displayed info
buffer -- including C-n for moving by line, the personality properties
disappear -- the face properties are present.
3. If I move to another node that hasn't been displayed, I hear the
effects of voice-lock -- returning to the previously displayed node
shows the voice properties to be still missing.
Am suspecting post-command-hook as a possible place where something
might be going wrong since the voice properties disappear the moment I
interact with the Info buffer.
--
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global-font-lock-mode-check-buffers: What does it do?
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
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2015-08-17 13:54 UTC (permalink / raw)
To: raman; +Cc: tv.raman.tv, emacs-devel
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global-font-lock-mode-check-buffers: What does it do?
2015-08-17 13:54 ` Stefan Monnier
@ 2015-08-17 16:46 ` T.V Raman
2015-08-18 5:11 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: T.V Raman @ 2015-08-17 16:46 UTC (permalink / raw)
To: monnier; +Cc: tv.raman.tv, emacs-devel, raman
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?
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
--
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global-font-lock-mode-check-buffers: What does it do?
2015-08-17 16:46 ` T.V Raman
@ 2015-08-18 5:11 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2015-08-18 5:11 UTC (permalink / raw)
To: T.V Raman; +Cc: tv.raman.tv, emacs-devel
> 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
> --
> --
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-18 5:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.