From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harald Kirsch Newsgroups: gmane.emacs.devel Subject: Any expert on font-lock machinery able to provide some insight Date: Fri, 3 Jan 2025 11:26:11 +0100 Message-ID: <67d9db0a-ba0f-4164-83fd-796089a6e40b@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25205"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 03 11:27:07 2025 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTetW-0006KO-St for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Jan 2025 11:27:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTesn-0007qS-6w; Fri, 03 Jan 2025 05:26:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTesj-0007qB-Vm for emacs-devel@gnu.org; Fri, 03 Jan 2025 05:26:18 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTesi-0004XX-8W for emacs-devel@gnu.org; Fri, 03 Jan 2025 05:26:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1735899971; x=1736504771; i=pifpafpuf@gmx.de; bh=CcbcwFXJmhUzjUnBGsG80FtyrTl3inxdyZGABaZM/Tc=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:From:Subject: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=mFh0pHvK/zIh9qvqsgEngtK0Tr9d4FLX7QaREUsPiGuadqJ8ZQ/mlRMikoX7MHo/ 6FjYus/BcXFQzpQupMSPROJy0fP11o7Ar/zl3q/jWnIz0kHmuQ850MiQUes9/0791 bQBWn/j87yHVzpjRFSlpIcSlRYYltL9mmj4O3Ns3KTyzQrfVhT37WEsZmkrMnpb3d x4a2PJixJFk3g1Gtdw12Q5WGAGm+ieX5Xj00CNfugKVWiOmxkgHXdGUNPLw0su5Ny uFjlGgRzQhy0vHA82MhryQnfBhY5rrTFRsn3zUhHaiBkYBI354gXf3GNO26FEPzVU kHEmUMsoAoupEC9BFQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.55.104] ([79.247.82.79]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1McpNo-1u2APx336Q-00mOpV for ; Fri, 03 Jan 2025 11:26:11 +0100 Content-Language: en-US X-Provags-ID: V03:K1:Ibi/XsLja7KeWy1ZhBPXJL/HQf4yd4dh5f0uQ/jv5slaZbMvK5U 4IdPg1DKHR1l7SoISOF9Ua1sU2sJV+lsHZQG/pmCj+sH/4e/yN9iofXEHPer/Ei30a1oVaW Q6YpUsvwJO2WvgPZCJfjcYLVYVycDa3F4xV4nrPMOsO5piCg6teu3oMNuxO0UullZ7mHK3i ApubvrsWfGkx7ySWs2Waw== UI-OutboundReport: notjunk:1;M01:P0:i1HPaNIiOhI=;cJv3JS+B5tr4QmyhaFRWj2tPV4T EQAKkYASPCbNfBneeY8fo5GqK+U8gkPrJBjpRGduJ+QXYx7NapDaRoL8VkIUW1cs0tEZ8XeT7 S12Z+gnKOE4zhQngMbyBALmVTfrPD14/4cwsv2jbbtVu64nUENpTg3bSTjywCeO27xMIppjD9 TR4ZTxSsSH1v7esG29bStrMAE7abhi0WAoPnVQh9LapUlyhhIBLHzZy5PTiHZ/fZgnpgbtJNz MNRMqWYgi1WGY0vP9oCvwcOoZV+wNkDUz8709pdYeiIrvQ0FuUHtN1EHMM29hK5cZIncmJbjV JGDgt0mHEWTDqA/NEnr5nqDI8u6lIdr6ZqxnIjA/V0eBbVvkUrtShhvMBjdY5MUQUZZtAPv16 KrOC4rCb6+ZDjTIozaj+6l29/t38tCTDyKEFUEqiQPWrRKsXP6NX/ENok6L4KlZtrYsoWzdfa mY9OuhhcI3sbJ7hbsCAbrX6nL844DxjpB/f4pg0wG0f9H8pV1PbI65zv7Qqy8ptuOtfumzE5j VTYtE26C1KG+rkjBQk/bFBcIz8Xvm43qpQw3wdK4vTXW/Dbi9fvgeyiGDvt6ICuHrwSdVnMLY Eg6sGI0P37crcDwYg2O1wUyjOhm39/yMm8xATQStnH2QvhyPT5zlUzjDTGPisEINrmUhp91SZ IooHdXQjfMWf3MKryRNXbFx1+W3A8lwVmAUfn1gIe1+ZdSzb0uqkNSnXxsLZcFaVxG4B7LX3b 5YXM9/bVB64jeobtjZwZnzfn80L/P+h7czEVobzum4D0Ne5tOgHlmnUVEm/5pqIt0msBGy2l Received-SPF: pass client-ip=212.227.15.18; envelope-from=pifpafpuf@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327619 Archived-At: 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.