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 14:40:19 +0200 Message-ID: <86plldwb7w.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28911"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, manphiz@gmail.com, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 27 13:41:35 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 1tR9en-0007KR-Qb for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Dec 2024 13:41:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR9e6-0005UO-FN; Fri, 27 Dec 2024 07:40:50 -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 1tR9dw-0005U7-MC for emacs-devel@gnu.org; Fri, 27 Dec 2024 07:40:41 -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 1tR9dq-0000hR-OS; Fri, 27 Dec 2024 07:40:35 -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=wlfs4fObOqnm0TzAu+egC1juhBkPrv+f4A7HZT1gL6M=; b=AuMLlBcfIBCo iiVlpNu/2Q12HKFRkzIVtqm9t2FVP8MsG2usOBMw8PVWL/BGBNt1LBcUez2DZrSREsZ52HcbtEyE5 ZVmCb1PAh7B2fmO/mYxud+58G3AvoLyGYabqZCDro11rgHCvoKlAxVe6pkKqcVI+kJuCGnLHanNXw kiIeHGtNFG0PNJ1fxSQ8OEnSvz7yU7UOmmS9dIhF340L/JjAJeqIcdDKwBLFH383m8RWZ7Nsn2xkY bGb80/gDLD5gMLrWRgEZfb76we2FUHGvEu9Tc5OYNgqq5HbRmQY11bH7BwPKakZvdcpo8hLvosmFe MNBgn1B4Re/z0/PiKvqW2g==; In-Reply-To: <8734i9tmze.fsf@posteo.net> (message from Philip Kaludercic on Fri, 27 Dec 2024 10:54:29 +0000) 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:327189 Archived-At: > From: Philip Kaludercic > Cc: Xiyue Deng , emacs-devel@gnu.org > Date: Fri, 27 Dec 2024 10:54:29 +0000 > > Richard Stallman writes: > > > If we add something like this to Emacs, there is an issue we need to > > take care about: to make carefully sure that it does not install > > any nonfree grammars. I don't know how those grammars are released, > > ir by whom, or how much they care about free software. We can't > > take for granted that they do. > > > > Perhaps we could check automatically that the grammar found is properly > > licenses, and disregard any grammars that are not free. > > > > By contrast, if grammars are going to be packaged and released for > > distros, and chosen for installation by users, then it is the user's > > responsibility, not Emacs's responsibility, to reject the nonfree ones > > (and the GNU/Linux distro might insist on that). > > 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?