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.devel Subject: Re: Update on tree-sitter structure navigation Date: Fri, 08 Sep 2023 09:40:48 +0300 Message-ID: <83h6o5xj4f.fsf@gnu.org> References: <5E7F2A94-4377-45C0-8541-7F59F3B54BA1@gmail.com> <8a5b3b3e-f091-3f38-09d4-c4e26bec97f9@yandex.ru> 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="35883"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dgutov@yandex.ru, emacs-devel@gnu.org, danny@dfreeman.email, theo@thornhill.no, jostein@secure.kjonigsen.net, dev@rjt.dev, wkirschbaum@gmail.com, pedz@easesoftware.com To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 08 08:42:15 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qeVC0-00090k-0X for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Sep 2023 08:42:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeVB7-0000oS-Ft; Fri, 08 Sep 2023 02:41:17 -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 1qeVAw-0000mt-Nj for emacs-devel@gnu.org; Fri, 08 Sep 2023 02:41:08 -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 1qeVAs-0000GZ-QK; Fri, 08 Sep 2023 02:41:03 -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=R40yDTpI9gV7sRJ951S723gldC9dw27X1ZPL8PULzvQ=; b=WQ9hNasO2c0gYvyfXoMV 3F4p0o6V6WqTvDnnqZejPi7Dfeo2bbfTnrsMF2oZ3Zj9d1/dpDnKcr9/BOtMCy6YwidtaH5nnt34g sexdWzVU0JsfUcK+3b+E/od1Z3Kq/i2ywgJh42SJ7o1yblHb/0X+ssu1hYnxJ+v+XSe2pYpYsDWVd ih+m6m9l3WThe7CpLb7NLVK2WLJvOkzVBfWRp7QHpDMv6yQiUL0L5t2Cy9wPoTI6Jv2r5++dId3Hn V63N9UvkPRhZMk0J66vxpxj3YlD4PZfi4SACHFEuUklodJqYDsEQT+HZxyyJl120U8bGsfI+C+iV5 gTO1rch80AgZyg==; In-Reply-To: (message from Yuan Fu on Thu, 7 Sep 2023 18:04:02 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310308 Archived-At: > From: Yuan Fu > Date: Thu, 7 Sep 2023 18:04:02 -0700 > Cc: emacs-devel , Danny Freeman , > Theodor Thornhill , > Jostein Kjønigsen , > Randy Taylor , Wilhelm Kirschbaum , > Perry Smith > > > I don't have a better idea than basically copying NeoVim and others: to maintain the urls to parser repositories and the ref of the latest known good revision, for the current version of the major mode. That info could be filled in by major modes themselves, e.g. in an autoload block (similarly to how auto-mode-alist is appended to). > > That’ll probably be ideal for third-party modes. But knowing Eli, I don’t think builtin major modes can do that. FTR, I have nothing against this technique, I just said that it will need volunteers to assume this non-trivial job for each major mode, and therefore I personally don't believe this to be a reliable solution in practice. But if volunteers step forward to do this, I don't object.