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: Mon, 05 Dec 2022 17:44:49 +0200 Message-ID: <83a64197ny.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 59693@debbugs.gnu.org, miha@kamnitnik.top To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 05 16:46:10 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 1p2DfW-0006k9-Ar for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Dec 2022 16:46:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2DfQ-000363-OD; Mon, 05 Dec 2022 10:46: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 1p2DfO-00035t-35 for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:46: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 1p2DfN-0005Cz-RY for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2DfN-0004dG-NA for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2022 15:46: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.167025514117795 (code B ref 59693); Mon, 05 Dec 2022 15:46:01 +0000 Original-Received: (at 59693) by debbugs.gnu.org; 5 Dec 2022 15:45:41 +0000 Original-Received: from localhost ([127.0.0.1]:36834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Df3-0004cx-3P for submit@debbugs.gnu.org; Mon, 05 Dec 2022 10:45:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Df0-0004cn-Rt for 59693@debbugs.gnu.org; Mon, 05 Dec 2022 10:45:39 -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 1p2Det-00056l-3H; Mon, 05 Dec 2022 10:45:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DOJUvby9hz3MhkEZLxfgTx72F4JqyUaKZD7PnQtWFkA=; b=SN+a23bL6Zff HQnMHq/HXx7YDWpKnTSBeI6DSSKKkBL0Z+gVhqrDJrQHzfIhtFBnmoWjEzkvdeAqxE37Xt1at4jBt eOotGomEoi3CsjFhY9M/eOcq+6ZJuqPGvBUB49QrLshz/+sEIpf/RsUQS6urRylGMCbZqMf8hpqyM eLQMm/H90eNF1f/ssBjkdso2ddUR80n65tOSTAwFWIC1lDnGM/us2cDhsfnBmik+iATAY46Lyp7z/ h7XHZhzFgBH0i3B3Z9+vcUn2BSpn+j0BqeSPtldABOmi9JG1Ja5G64Ehk4v1zmdXKv0RBgNWwy1f4 KEOKRe8jU3SusKEr0QBjKw==; 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 1p2DeS-0004aC-Jh; Mon, 05 Dec 2022 10:45:30 -0500 In-Reply-To: (message from Stefan Monnier on Mon, 05 Dec 2022 10:29:06 -0500) 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:250047 Archived-At: > From: Stefan Monnier > Cc: Yuan Fu , 59693@debbugs.gnu.org, miha@kamnitnik.top > Date: Mon, 05 Dec 2022 10:29:06 -0500 > > > Will this "hold water" vis-a-vis the expectations of various features that > > would like to use tree sitter related capabilities? Regardless of your > > opinion on indirect buffers, many 3rd party packages and features use > > indirect buffers as the backbone of their implementation. We don't > > currently have any alternatives to that, AFAIK. So I'd expect a lot of > > disappointment if we declare that indirect buffers will not be supported by > > tree sitter as a matter of design decision. > > I can't see why: a package that uses indirect buffers can just as well > run its tree-sitter parsers in the base buffer. I thought about those multi-mode modes, or features that show the same buffer more than once with different modes. > > Changing insdel.c to run stuff in base buffer could be a solution, but > > I don't feel we can make such changes on the release branch. > > Agreed. > > > But maybe we can do that now only for treesit.c functions. > > Sounds OK to me, yes. OK, thanks. Yuan, will this work for you? can you show a patch along these lines?