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 10:19:15 +0200 Message-ID: <22B4F037-2979-4C65-8917-26D17CFBED0A@gnu.org> References: <87r0xlbjg6.fsf@miha-pc> <5F7AE71F-0327-409E-BCE9-310E1980C17A@gmail.com> <8335a0lept.fsf@gnu.org> 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="21398"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: 59693@debbugs.gnu.org, miha@kamnitnik.top To: Stefan Monnier , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 05 09:20: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 1p26iC-0005M3-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Dec 2022 09:20:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p26i3-0007DF-MD; Mon, 05 Dec 2022 03:20:19 -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 1p26hm-0007Cd-FY for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 03:20:04 -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 1p26hl-0001B2-Lb for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 03:20:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p26hl-0001PK-HN for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 03:20: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 08:20: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.16702283715397 (code B ref 59693); Mon, 05 Dec 2022 08:20:01 +0000 Original-Received: (at 59693) by debbugs.gnu.org; 5 Dec 2022 08:19:31 +0000 Original-Received: from localhost ([127.0.0.1]:34518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p26hH-0001Oz-3g for submit@debbugs.gnu.org; Mon, 05 Dec 2022 03:19:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p26hE-0001Ot-OI for 59693@debbugs.gnu.org; Mon, 05 Dec 2022 03:19:29 -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 1p26h8-0000ya-Ao; Mon, 05 Dec 2022 03:19:22 -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:In-Reply-To:Subject:To:From: Date; bh=5ar3BYo8egdm0Jof9Yy5oeJ6z3A2JpuOGwpzgKUmjz0=; b=kuRy5w/YTOUMbk+o+pZQ /axICW0Ttu7WfuiW7mc8kDHzEz9LcI3vDyaVxCxBataHpjJ/m3vWYohks9+k3F0IKiJb330cI4G29 DC5GrzOJ/qXz3JiOjb82+CHZhTju+ZPG05pn+zXKHi/sH/LKICMM8QgcCnY5GuZ9qR9SIohSxuVvm cWWq/oDVJE00FwcL+1Ham+ePZNaV5mbjqYQnQ5dz88gtEiUE6BC9rJ75NVJNHzngBR0egQQMR5JGf t6cg6V4C53vaIcStTDgQJ/7A2URIgQTRDhk8hKCUoTvUfeZwArdF+DbiKqWuccgCQMofPru6cbokj xGVkzyCZNzNMuA==; Original-Received: from [2a02:14f:17a:a7d0::1595:5ce5] (helo=[IPv6:::1]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p26h6-0002YX-EE; Mon, 05 Dec 2022 03:19:21 -0500 In-Reply-To: Autocrypt: addr=eliz@gnu.org; keydata= mQENBF+pf4UBCAC6vjkWLSAsQpe8YIGKLQzNOJx/IjGtCdFF8uzmO5jmME+SD8ROuJN+t5KXVw58 uzu75EFD0vHTY9e+udJ2gkpuy0NnzkFcbumdLLo2ERKCoSctZZRhzKXI5z5cHxCqW0B2ygHRrRLt oNlGID7bAgcgSViT1ptGqTXO7zGVu4Airok7dNzcPtHgns8GlR5YAFX0TvE6oGd0l2VPghNeVJKJ OjrbfhoDxl3ucFpqbqMH8z9HTLDOFpz8UaYYUdJMi3xX6vwTZxI2sM2RRVLUpZyllAkSMI4lln1O OgazM/62DJUs/rKIHKBnF6h3/qsJUjUYXaAHbrXY26mWllAd536lABEBAAG0I0VsaSBaYXJldHNr aWkgKGVsaXopIDxlbGl6QGdudS5vcmc+iQE4BBMBAgAiBQJfqX+FAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAAKCRCRwSYvAeuNOYUQB/4/iIKKOG45ijNaRoTvmJJZMvj1S07WQxEm7c5SHEeE QbLOAxB9vESOV7sLueuN3oqEndtzyYt4x1WTSBmHFF7h5fcCMjBs41siOIp5Sj/xD0Bvaa0IKGCR SZ7PAo8Mq3wgajXpTpn9vxE2PmtzA8KdEE0K1+f9pVAfOpUIcCl44rIxLUW352XG0y7iz6c/O6LB 1deOKMiKFctKO7pBti1dJEm1ImewLH3H8uTbwspLOs3EB8xhsESxmTidnze68HX2jt+2EeMgCdki NU+LWbexQZPfIS7+ZmE06ll0v6+Jy7ZdTkCCRypKWTnW7pIFsq/p4kybV8O/kHSV6B4vvQBfuQEN BF 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:249995 Archived-At: On December 5, 2022 5:49:14 AM GMT+02:00, Stefan Monnier wrote: >=20 > Don't bother, please=2E > Instead, I recommend you disallow the use of tree sitter in indirect > buffers=2E And we should probably try and change `insdel=2Ec` so it alw= ays > runs the `after/before-change-functions` in the base buffer (this should > fix the worst part of the problems)=2E Will this "hold water" vis-a-vis the expectations of various features that= would like to use tree sitter related capabilities? Regardless of your op= inion on indirect buffers, many 3rd party packages and features use indirec= t buffers as the backbone of their implementation=2E We don't currently ha= ve any alternatives to that, AFAIK=2E So I'd expect a lot of disappointmen= t if we declare that indirect buffers will not be supported by tree sitter = as a matter of design decision=2E Changing insdel=2Ec to run stuff in base buffer could be a solution, but I= don't feel we can make such changes on the release branch=2E But maybe we= can do that now only for treesit=2Ec functions=2E Yuan, would tgat solve = this particular problem?