From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59693: 29.0.50; treesitter in base buffer doesn't respond to modifications in indirect buffer correctly Date: Tue, 06 Dec 2022 14:17:44 +0200 Message-ID: <83tu287ml3.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19825"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59693@debbugs.gnu.org, monnier@iro.umontreal.ca, 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 13:34:59 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 1p2XA3-0004qJ-Ta for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 13:34:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2Wuo-0003Dp-Tz; Tue, 06 Dec 2022 07:19:14 -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 1p2Wuc-0003DT-VJ for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:19:03 -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 1p2Wuc-0006Pb-N5 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2Wuc-0006yn-D1 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2022 12:19:02 +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.167032908826822 (code B ref 59693); Tue, 06 Dec 2022 12:19:02 +0000 Original-Received: (at 59693) by debbugs.gnu.org; 6 Dec 2022 12:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:42659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Wtk-0006yY-Ee for submit@debbugs.gnu.org; Tue, 06 Dec 2022 07:18:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Wth-0006yB-QJ for 59693@debbugs.gnu.org; Tue, 06 Dec 2022 07:18:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2Wtb-0006I1-2w; Tue, 06 Dec 2022 07:17:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gUfy0NkOHrk2FZ2d4L1uNg19SD0eCR9YXNoQgfrZd8s=; b=ouavrMF1rRtOdpM5Pzc3 FwdaDpwWhzgTTDMB5oZcOAzZh+ApgG7J9eLRhjwYuhql7h+7oZJnN5axsm27x1RufOnHD05GGbaB8 lYDQAEPawypmYNSYwRmxOHZawzXqQ53L0sNH4Y8N7R9Fr56ltKDDDDVKIo9w5nATSQGJaA/qTiCGA /CV7ra4RyUwBR7ut6kAN1vQ01fHznzojmvE7kMSYNLgsW5dmlD+rwUk6759pa906FJ3Ak0K8QEj51 Fff8EYav8YLWqiNw+AByS9v1OyiWBp0rz0reV/GKEPznS4AZnk0R3bdvAZdt0ZMmHhymsF36ztz8Y X0NTyWQK0qi8zg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2Wta-0005L3-5w; Tue, 06 Dec 2022 07:17:58 -0500 In-Reply-To: <0973FBCA-DFBE-4FF7-9052-2B60D2FC81DC@gmail.com> (message from Yuan Fu on 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:250103 Archived-At: > From: Yuan Fu > Date: Mon, 5 Dec 2022 18:15:07 -0800 > Cc: Stefan Monnier , > 59693@debbugs.gnu.org, > miha@kamnitnik.top > > 1. Only allow base buffer to have parsers, no change is needed for insdel.c, treesit_record_change can find the base buffer and update its parsers. We can ask indirect buffers to use their base buffer’s parser. Unless the base buffer is narrowed, I think it will work fine. I think this is fine, but we need to document it. > I remember that there were a discussion along the lines of user-narrow vs low-level narrow, what was the outcome of that discussion? Nothing in particular, and I don't think it's relevant. If some mode needs to widen, it can. Thanks.