From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59693: 29.0.50; treesitter in base buffer doesn't respond to modifications in indirect buffer correctly Date: Mon, 05 Dec 2022 22:57:23 -0500 Message-ID: References: <87r0xlbjg6.fsf@miha-pc> <5F7AE71F-0327-409E-BCE9-310E1980C17A@gmail.com> <8335a0lept.fsf@gnu.org> <22B4F037-2979-4C65-8917-26D17CFBED0A@gnu.org> <83a64197ny.fsf@gnu.org> <0973FBCA-DFBE-4FF7-9052-2B60D2FC81DC@gmail.com> Reply-To: Stefan Monnier 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="7752"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 59693@debbugs.gnu.org, miha@kamnitnik.top To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 06 04:58:28 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 1p2P6B-0001pq-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 04:58:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2P5o-0000NH-Df; Mon, 05 Dec 2022 22:58:04 -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 1p2P5m-0000Mm-QZ for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 22:58: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 1p2P5m-0003YK-7x for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 22:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2P5l-0001PU-OT for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 22:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2022 03:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59693 X-GNU-PR-Package: emacs Original-Received: via spool by 59693-submit@debbugs.gnu.org id=B59693.16702990535413 (code B ref 59693); Tue, 06 Dec 2022 03:58:01 +0000 Original-Received: (at 59693) by debbugs.gnu.org; 6 Dec 2022 03:57:33 +0000 Original-Received: from localhost ([127.0.0.1]:40189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2P5J-0001PF-EP for submit@debbugs.gnu.org; Mon, 05 Dec 2022 22:57:33 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:5565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2P5H-0001P8-D0 for 59693@debbugs.gnu.org; Mon, 05 Dec 2022 22:57:32 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CCAA3442748; Mon, 5 Dec 2022 22:57:25 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8767E442746; Mon, 5 Dec 2022 22:57:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1670299044; bh=oCfw19OAXIWWeYcm4fcd2IvQR75+SbL8BdTusjn5oXY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IXa/66mjg7JeRVZbGNdANxMr780hxvsIz7ZtMHIFptw3EcAJsJ0vGqQDBQD/Imuni xC0zKUP9hffxWW8ilv9M+DVvtTSEGXRTj2v6wAOzRXp7dhAbJVyRXcMN6mZRscP0p6 grpX35Jm4wBS8FvX5k5bjytaS/fyPQE/tN8ozs57X4K/PtXXsQvujx6aFK3y7Ec+tf Wra6r3j5Qpca3cXGuJhub2R4DqmB8oM6LQmjFUiN2InvSDTciand4YuziWzxzmZ3VT EQoVJBe3lO7wGeXJqics0C5m9M7dir2yP+HYVLuLbdQ+NEUoG5LR31oDkZLlBgH/p8 EAfeVxU905bpQ== Original-Received: from pastel (unknown [45.72.193.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4E23A122535; Mon, 5 Dec 2022 22:57:24 -0500 (EST) In-Reply-To: <0973FBCA-DFBE-4FF7-9052-2B60D2FC81DC@gmail.com> (Yuan Fu's message of "Mon, 5 Dec 2022 18:15:07 -0800") 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:250084 Archived-At: > 1. Only allow base buffer to have parsers, no change is needed for insdel= .c, That's the option I recommend, and I that's what I understood Eli was agreeing we do. > treesit_record_change can find the base buffer and update its parsers. We > can ask indirect buffers to use their base buffer=E2=80=99s parser. Unles= s the base > buffer is narrowed, I think it will work fine.=20 Exactly. Code that uses this can `widen` as needed as well. Stefan