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: Tree-sitter maturity Date: Fri, 27 Dec 2024 16:59:14 +0200 Message-ID: <86h66pw4sd.fsf@gnu.org> References: <1ed88fca-788a-fe9f-b6c8-edb2f49751c9@mavit.org.uk> <67428b3d.c80a0220.2f3036.adbdSMTPIN_ADDED_BROKEN@mx.google.com> <86ldwdm7xg.fsf@gnu.org> <6765355b.c80a0220.1a6b24.3117SMTPIN_ADDED_BROKEN@mx.google.com> <00554790-CACA-4233-8846-9E091CF1F7AA@gmail.com> <86msgl2red.fsf@gnu.org> <87o710sr7y.fsf@debian-hx90.lan> <8734i9tmze.fsf@posteo.net> <86plldwb7w.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14984"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, philipk@posteo.net, rms@gnu.org, manphiz@gmail.com To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 27 15:59:56 2024 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 1tRBoi-0003kH-H6 for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Dec 2024 15:59:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRBoD-0003jM-Ta; Fri, 27 Dec 2024 09:59:25 -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 1tRBoC-0003jA-9u for emacs-devel@gnu.org; Fri, 27 Dec 2024 09:59:24 -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 1tRBoC-0007Jr-1l; Fri, 27 Dec 2024 09:59:24 -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=QX4nPum4i3m6ByhSC8qmtLnatQe7AWWuaqehLIBfbxM=; b=C13fb8noFn70 eOmDvCjKf/WHGxaS37gwBYIiS8FVp7quMqrlkQwSGN2kK3onEEiUHBitPt4aKRvQ+mX12sxDpL8ak oaFXTHCuRIlaer+ABz+bMO3bB9NmMWwycqRRoAa9EEtY75qvSsMfBhorg5IbvJjWtHUBHgkJy94vf lRu32EoR201PYs7Rzh8m6TskmiuNqlq8fX0eqG5FAJ7HFs5Qy9uOx2NdpzBejah9KIu7JYve+2MkI qYta2MnkOr0BTAwnBGmybuc9tV50onlp1HjAUGgPY5FVE7yLAF2paJA/k91ZhTYEpHGkopHYNCkBB C1JfKB4iosD/2JDm2/lStA==; In-Reply-To: (message from Daniel Colascione on Fri, 27 Dec 2024 08:46:06 -0500) 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:327198 Archived-At: > Date: Fri, 27 Dec 2024 08:46:06 -0500 > From: Daniel Colascione > CC: rms@gnu.org, manphiz@gmail.com > > >> It might take a while for that to happen, which is why I still believe > >> it would be better if tree-sitter major modes would populate > >> `treesit-language-source-alist' on their own, and point to the specific > >> checkouts that the major mode developer tested their implementation > >> against. > > > >We could have done that, but there's no way we could keep the value of > >treesit-language-source-alist up-to-date, because the grammar > >libraries put out new versions much more frequently than Emacs > >releases, especially if you consider libraries that have no official > >versions at all (in which case we can only point to some revision in > >their repository). > > > >The question that bothers me is how useful is it to have > >treesit-language-source-alist that is outdated? What do we expect the > >users to do with such an outdated value? > > > > Why not just vendor all the grammars with the Emacs modes that use them? We'd need to ask their developers to agree to this. Other than that, I don't see how is that different from pointing to a specific version of each grammar: both will be outdated a short time after we point to the version or release Emacs with that version. So why do you think this is better?