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 10:29:06 -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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu , 59693@debbugs.gnu.org, miha@kamnitnik.top To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 05 16:30:31 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 1p2DQN-0006Fu-3m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Dec 2022 16:30:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2DQF-0007I7-HZ; Mon, 05 Dec 2022 10:30:23 -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 1p2DQ2-0007Fy-N1 for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:30:17 -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 1p2DPu-000226-Na for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:30:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2DPu-0004Pk-6K for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2022 15:30: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.167025415716931 (code B ref 59693); Mon, 05 Dec 2022 15:30:02 +0000 Original-Received: (at 59693) by debbugs.gnu.org; 5 Dec 2022 15:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:36700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2DPA-0004P1-LL for submit@debbugs.gnu.org; Mon, 05 Dec 2022 10:29:16 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2DP9-0004Ov-14 for 59693@debbugs.gnu.org; Mon, 05 Dec 2022 10:29:15 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9750880725; Mon, 5 Dec 2022 10:29:09 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9B6048054F; Mon, 5 Dec 2022 10:29:07 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1670254147; bh=x+931UO0eXedU3OcxYkCc5+UaRD+ZFnjUF10UC2mIac=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VSLdPkPliN8MlMDlorB6IaS0iPd3EphHgkPo7KaGL9ddvaIgl6C1DAPK9iO+/sy4X ribvraiaSdHi8hjuosVXV+CSizvkCWoTdJghAUQeWoTZ8PRDIV9UCJ1E+ohbzeHTPz EUGBnkT5upccPVu185zU2kkoi0u+o63PoKRCQ0CKgiZlOr7QAs4LHIjb8Vv+ZgJxf5 viMUJdGoLR7VExnMCXDJgr9JhdqWN25dzdC+B6vhJi8voof5nYQhlQCHJ2f2rATbXP p2l+SJ+sqYdWTcfSRcwv2AXxGKo6hHfMyJpywfxEr1WG7P3b1OuU2WnYDI+pjgTOzp 9oFyzwIMx0VZg== Original-Received: from alfajor (alfajor.sf.umontreal.ca [10.35.225.233]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 902B91209C1; Mon, 5 Dec 2022 10:29:07 -0500 (EST) In-Reply-To: <22B4F037-2979-4C65-8917-26D17CFBED0A@gnu.org> (Eli Zaretskii's message of "Mon, 05 Dec 2022 10:19:15 +0200") 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:250042 Archived-At: > 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. > 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. Stefan