From: Harald Kirsch <pifpafpuf@gmx.de>
To: emacs-devel@gnu.org
Subject: Any expert on font-lock machinery able to provide some insight
Date: Fri, 3 Jan 2025 11:26:11 +0100 [thread overview]
Message-ID: <67d9db0a-ba0f-4164-83fd-796089a6e40b@gmx.de> (raw)
Hi font-lock experts?
I am working on a font-lock function and see it called by the jit-lock
timer at weird times.
I see a normal font-lock function call after a change, for example when
inserting a character. But then I see
- calls when moving the cursor (no scroll)
- when setting the mark
- when moving the mouse into **another** frame
- when moving the mouse into yet **another** frame
I understand that when the function does not return
(jit-lock-bounds beg . end)
jit-lock assumes the region was fontified just fine. For completeness I
also added the an explicit (jit-lock-bounds beg . end) return to my
font-lock function. Same behavior.
But it seems I am missing another channel of information which triggers
font-locking too often.
With describe-char I do see
There are text properties here:
fontified defer
not going away. Can this point to the problem?
Hints appreciated.
Harald
P.S.: I am not showing code on purpose as this would be a lot. I'd
rather just hear from anyone who might have had a similar issue to get
ideas where to look.
next reply other threads:[~2025-01-03 10:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-03 10:26 Harald Kirsch [this message]
2025-01-03 11:58 ` Any expert on font-lock machinery able to provide some insight Eli Zaretskii
[not found] ` <91114d5a-4af9-4ae1-b7c9-b673e5edf25e@gmx.de>
2025-01-03 13:32 ` Eli Zaretskii
2025-01-03 13:57 ` Harald Kirsch
2025-01-03 16:09 ` Any expert on font-lock machinery able to provide some insight --- problem solved Harald Kirsch
2025-01-03 14:42 ` Any expert on font-lock machinery able to provide some insight John ff
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=67d9db0a-ba0f-4164-83fd-796089a6e40b@gmx.de \
--to=pifpafpuf@gmx.de \
--cc=emacs-devel@gnu.org \
/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.