unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Any expert on font-lock machinery able to provide some insight
@ 2025-01-03 10:26 Harald Kirsch
  2025-01-03 11:58 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Harald Kirsch @ 2025-01-03 10:26 UTC (permalink / raw)
  To: emacs-devel

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.










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

end of thread, other threads:[~2025-01-03 16:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03 10:26 Any expert on font-lock machinery able to provide some insight Harald Kirsch
2025-01-03 11:58 ` 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

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