From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59455: 29.0.50; Treesit font lock changes unrelated code Date: Tue, 22 Nov 2022 12:03:48 +0100 Message-ID: <3D78650B-ADAC-4BC9-A3D1-1C0E08273888@thornhill.no> References: Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31800"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59455@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 12:07:35 2022 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 1oxR7l-00080D-S2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 12:07:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxR7O-0003zq-Md; Tue, 22 Nov 2022 06:07:11 -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 1oxR7G-0003zN-NY for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 06:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxR7G-0006bc-Bo for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 06:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxR7G-0000xj-6r for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 06:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59455 X-GNU-PR-Package: emacs Original-Received: via spool by 59455-submit@debbugs.gnu.org id=B59455.16691152023666 (code B ref 59455); Tue, 22 Nov 2022 11:07:02 +0000 Original-Received: (at 59455) by debbugs.gnu.org; 22 Nov 2022 11:06:42 +0000 Original-Received: from localhost ([127.0.0.1]:50007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxR6w-0000x4-19 for submit@debbugs.gnu.org; Tue, 22 Nov 2022 06:06:42 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:12553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxR6t-0000ws-D5 for 59455@debbugs.gnu.org; Tue, 22 Nov 2022 06:06:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1669115197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yi5sJuMCrPOtY4kqsczv2ITXHbwNk/fBQmzwlswR23s=; b=Df4xyfBi/AUNllLv8b/ujbfBAx1fuowO27oNbk9q13Ol78Lnl/fJIxr+JGSfCoFJrjLW52 hBWA3KOuX+IL4jsye/HFCW4AEXgQ2ABa+ooxRnr47+g+VAxXGFXILG9mHmbe23WvjBq5Zi 2UlPRiWydpp98M1F02xgZOLgU6rivycE9wGS/8Jh6uHMUcSP0t+R4zx7xlIbb98rKPdmH7 P5EU0GTK+fJoGyi80wE1kg0O2k7Do4vOnAOsRk3OgWHIwlsRGdYiQCwSaxbT+IegHUfXnU /Vfo792yWV+sBinnrP97yYCE8wE4/FsdPIjVlT6ZX28T1zWpEMMdSSKHF+CE0Q== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: X-Migadu-Flow: FLOW_OUT 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:248620 Archived-At: On 22 November 2022 11:05:50 CET, Yuan Fu wrote: > >Theodor Thornhill writes: > >> Hi Yuan! >> >> I've noticed some strange behavior with font-lock lately in c-ts-mode, >> and also in all the other ts modes=2E >> >> to reproduce: >> >> emacs -Q >> >> C-x C-f foo=2Ec RET >> >> Insert this: >> >> ``` >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> /* lol lol lol lol lol lol lol lol lol lol */ >> >> int >> foo (void) >> { >> return 5; >> } >> >> int >> foo (void) >> { >> if (x) >> { >> return 5; >> } >> } >> >> int >> foo (void) >> { >> return 5; >> } >> ``` >> >> M-x c-ts-mode RET >> >> Now on the first line, repeatedly press 'M-c' (capitalize-word) and >> watch the highlights of the rest of the file jump around=2E Then try >> undoing the changes by repeatedly pressing 'C-/' until you are back at >> the state right after the first insert=2E Now highlights are messed up= =2E >> >> I'm not sure where to start looking for this, but I do remember there >> being some issues in Eglot with these "multi-edit" commands=2E >> >> If you have some pointers for where to look I can dig around :) > >Thanks for the catch! It is due to tree-sitter not correctly recording >changes in casefiddle=2Ec=2E I=E2=80=99ve fixed it now=2E=20 > Now you can Lol as much as your heart desire=2E Don't you always capitalize lols at the top of your files?=20