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#62333: 30.0.50; Issue with tree-sitter syntax tree during certain changes Date: Mon, 27 Mar 2023 16:32:48 +0300 Message-ID: <83edpa9v5r.fsf@gnu.org> References: <87fs9yur7r.fsf@gmail.com> <2fd8f2b8-d9c4-c825-a789-f2d42324859f@yandex.ru> <09539C5E-23DA-4B00-A3F6-873A41D6A2CE@gmail.com> <83h6uc549z.fsf@gnu.org> <665745A2-FDC8-45DE-BFF5-2F688FC85431@gmail.com> <491b788f-c3c3-4877-daa0-f515be9f3a17@yandex.ru> <83sfduelab.fsf@gnu.org> <8FC25A01-6934-43BB-899C-CA5926BEA3CF@gmail.com> <83jzz5c8ml.fsf@gnu.org> <83edpdc6sn.fsf@gnu.org> <1ca302bf-99dc-7f9e-8544-063064a1cb21@yandex.ru> <831qlcdisi.fsf@gnu.org> <398721ad-79b0-3f6d-97b3-4902d9bfbe39@yandex.ru> <83wn34c2qa.fsf@gnu.org> <3b3d82d1-f0f6-a768-a5db-8dc9386a5a34@yandex.ru> <83r0tcbz8g.fsf@gnu.org> <1967361679760225@umbzx4hqxrw5qxo7.sas.yp-c.yandex.net> <83mt40bxzd.fsf@gnu.org> <83jzz4bugh.fsf@gnu.org> <35322CB1-DF75-47C1-9B66-21260C437006@gmail.com> <83a600b0gk.fsf@gnu.org> 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="39973"; mail-complaints-to="usenet@ciao.gmane.io" Cc: wkirschbaum@gmail.com, 62333@debbugs.gnu.org, dgutov@yandex.ru To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 27 15:33:34 2023 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 1pgmyb-000A85-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Mar 2023 15:33:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgmyM-00051L-Ch; Mon, 27 Mar 2023 09:33:18 -0400 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 1pgmyA-00050W-1h for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 09:33:07 -0400 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 1pgmy5-0005oR-Sa for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 09:33:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pgmy5-0005q2-Ou for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 09:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Mar 2023 13:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62333 X-GNU-PR-Package: emacs Original-Received: via spool by 62333-submit@debbugs.gnu.org id=B62333.167992397622430 (code B ref 62333); Mon, 27 Mar 2023 13:33:01 +0000 Original-Received: (at 62333) by debbugs.gnu.org; 27 Mar 2023 13:32:56 +0000 Original-Received: from localhost ([127.0.0.1]:46826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgmy0-0005pi-8C for submit@debbugs.gnu.org; Mon, 27 Mar 2023 09:32:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgmxy-0005pS-4N for 62333@debbugs.gnu.org; Mon, 27 Mar 2023 09:32:54 -0400 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 1pgmxs-0005bi-T9; Mon, 27 Mar 2023 09:32:48 -0400 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=Hq8/2PA1Y63B5A739p9b72lCuOiV200JoU8mY423gvY=; b=MekxfuTSbiGIi/BdY453 /1h2zIYjjGqrM09P9dOgouCv9mWba+iFPQNxzLzlO55L7tG/6s/Zzx3vXvVFQ+4FP8jzhbDS5PyLd 28vtxRbPnEPYDlvYaNObnGaVckjJaa2KOBqEkCO4yS9M05xULyUdAjJPSGMzcddA1rXzdW9HigoOF 5S73p2fiAh8Z3IjNYws/hAKqP4WsaRhe5KlwRvkYIO2reuIS/a3ZBeLVTE+bPpEnJHTyW/dQxvDoq xgqq1KzbFOb/XPPELs0359dqmvQfMDxGHpPD5g7X9sV8h681GUdld5rFOU67L+HPHq9jt4QAIXsl6 NtciKle/k+CHSQ==; 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 1pgmxq-0004UH-Bf; Mon, 27 Mar 2023 09:32:47 -0400 In-Reply-To: (message from Yuan Fu on Sun, 26 Mar 2023 15:57:55 -0700) 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:258728 Archived-At: > From: Yuan Fu > Date: Sun, 26 Mar 2023 15:57:55 -0700 > Cc: Dmitry Gutov , > Wilhelm Kirschbaum , > 62333@debbugs.gnu.org > > > We could leave this alone for now, but in that case let's at least add > > some FIXME comment in the relevant place(s), so that we could later > > revisit this. > > Dmitry’s idea sounds good, we can add a tree-sitter backend for show-paren-data-function, and make the backend for blink-matching-paren configurable, then add a backend for it that uses show-paren-data-function, which in turn uses tree-sitter (or we add a backend that uses tree-sitter directly). In either case, the tree-sitter backend don’t need to use narrowing and we are good. Is this suitable for the release branch? It sounds non-trivial, and the problem is not very severe, to say the least.