From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#66732: tree-sitter fontification doesn't update multi-line syntax reliably Date: Tue, 19 Dec 2023 01:10:39 +0200 Message-ID: References: <878r7s5cdf.fsf@honnef.co> <83fs1tbou1.fsf@gnu.org> <835y1zo3rw.fsf@gnu.org> <2ce274aa-6d01-4d0a-b10c-07f821343fed@gmail.com> <50920549-006c-0153-2471-02e41a3dada7@gutov.dev> <8c7cd429-bdc3-4fac-ad1c-fbad793bf1a0@gmail.com> <231ebcd1-ec30-0432-82e7-d63e11cd65f7@gutov.dev> <765D713E-9923-4F66-9044-9D69C104C9B0@gmail.com> <33fe5d61-5022-67c5-6a65-babde4fb7f91@gutov.dev> <92CACD38-9534-4A07-8DE3-CE8408272FB6@gmail.com> <59CC46F7-867E-4C74-83EC-49B41DF0FAB8@gmail.com> <8fa0e506-6efc-57d4-6034-e938f97b1fb0@gutov.dev> <83plz3i9vv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: casouri@gmail.com, 66732@debbugs.gnu.org, dominik@honnef.co To: Eli Zaretskii , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 19 00:11:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rFMld-0003AZ-Aw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Dec 2023 00:11:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFMlI-00026Y-Vs; Mon, 18 Dec 2023 18:11:01 -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 1rFMlI-00026J-7r for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2023 18:11:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rFMlH-0007mQ-SA for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2023 18:10:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rFMlJ-0007Vg-UT for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2023 18:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Dec 2023 23:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66732 X-GNU-PR-Package: emacs Original-Received: via spool by 66732-submit@debbugs.gnu.org id=B66732.170294105328837 (code B ref 66732); Mon, 18 Dec 2023 23:11:01 +0000 Original-Received: (at 66732) by debbugs.gnu.org; 18 Dec 2023 23:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:33786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFMlA-0007V3-Gi for submit@debbugs.gnu.org; Mon, 18 Dec 2023 18:10:52 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFMl8-0007Uh-H2 for 66732@debbugs.gnu.org; Mon, 18 Dec 2023 18:10:51 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3144C5C0320; Mon, 18 Dec 2023 18:10:43 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 18 Dec 2023 18:10:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1702941043; x=1703027443; bh=QkQU/kzMWW+FXAGRModVsyMzYW9k8vmsIub/9CJwmgE=; b= OHw6xHDvy43bNRvB4v43iptgWOXPNlma5X7dHEgDQovcxU04qnAGsm0ShzPJ2t4f gI5Vu3OrUe67dxaHQ3wV6d8xXz0IHbUO1RA9QRgp2vkoO2uRfDnrOrTG0zchFjCe qGWlCp9cy/8iHFuUFUqho31wmPfcU2PvkOQ2qWtgeD73tftFntY6I2tPfxfIQVfR /4NCHDdCsxLt/B3Y+Gws6ZmD3bBA7p5Drgue6xMr8OEwQcfpg527Ru9ncRb8kT0T eOoJJC7GbnwDDZFb38jyUpd8UCaDwjK5Rku7JT6TqTJIMAYMDLYDgFzdE7340SF4 /IrQM9zcrCUYq4LYKgSjGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1702941043; x= 1703027443; bh=QkQU/kzMWW+FXAGRModVsyMzYW9k8vmsIub/9CJwmgE=; b=h uSRHvf5ker8ImcLmB+ymCnE0errp0bZ8H4wRnts5kqaKY7H+RUt11YEJvYDfCX5E xvCAmU5ZOYqTBltiyS7xq7AcAwsmhc+3igYarEGe60SmVIUNQNifMRMi1A7O87ab m5axjZUTxi48pRpEfpRcDzMcghzY5jKcSK0Dq/IGuKl2oLoZNmM2T5FgCWQcX/GN BvYHMxpnBJjaZ/ZcTzep8nzgCsKsnmUe/LC5J0NnUyv2uxkoyg12NswlLgtpE3uO IQ/6tI8Uzt3RbbLHr49feYYjjjnLYkcY7deLPqfllk6eUOQrunfGpQC+y8N0KE5s /c3wYL5rdhfwV2LMLo+xQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddtledgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Dec 2023 18:10:41 -0500 (EST) Content-Language: en-US In-Reply-To: <83plz3i9vv.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276487 Archived-At: On 18/12/2023 21:33, Eli Zaretskii wrote: >> From: Stefan Monnier >> Cc: Eli Zaretskii,66732@debbugs.gnu.org, >> dominik@honnef.co, Yuan Fu >> Date: Mon, 18 Dec 2023 14:12:02 -0500 >> >> I'm surprised that 42 behaves differently from t. > The display code in C tests only for nil or non-nil, but jit-lock.el > tests against a literal t in a few places. (And don't forget about > the special value 'defer' we use.) > >> What we really need here is to force the redisplay to consider that this >> part of the buffer needs to be re-rendered. > AFAIU, it will only re-render that part of some of the faces changed. It seems like in our scenario the region does not get re-rendered even when some of the faces changed in there.