From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Mon, 02 Jan 2023 23:06:13 -0500 Message-ID: References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> <831qozjob7.fsf@gnu.org> <87cz8jxoat.fsf@ledu-giraud.fr> <83wn6ri7pn.fsf@gnu.org> <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> <868rj6vfep.fsf@gmail.com> <4895891b-e5ea-9c37-f51b-df2e479ee758@yandex.ru> <83y1qt11xq.fsf@gnu.org> <9eb013da-d0fc-8e17-c6e3-1e8f913aebfa@yandex.ru> <83pmc50xxc.fsf@gnu.org> <71cfe4e8-3bb8-b0a6-9be5-8c0a6d92cfab@yandex.ru> <83h6xg29z3.fsf@gnu.org> <87wn6cyey5.fsf@posteo.net> <787B1EB4-1925-4679-8747-449DCD685432@gmail.com> <834jta4udt.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22395"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 03 05:07:13 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 1pCYa1-0005Uh-1q for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Jan 2023 05:07:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCYZA-0001LH-40; Mon, 02 Jan 2023 23:06:20 -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 1pCYZ5-0001Kx-0s for emacs-devel@gnu.org; Mon, 02 Jan 2023 23:06:16 -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 1pCYZ3-0007G9-U4 for emacs-devel@gnu.org; Mon, 02 Jan 2023 23:06:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=8pi47NvE5PwnS6hEyAA/S2vK3CJI9LcNncT9/kFbexY=; b=HIp+SeLYgf0x b0wFa9M5FdqzwgR2aNQN0QcGECfifgZpxitx8k2k1QGLK0aZkBwA916QcLibulznB1pAVDzRToPeW qmfDRYwTAtTBtdMwzINA+xJoCP17ldXu6971Jw2WnIVrX44n1ER+o29l3bwBA6GjEUEoQ5RWhRZZW 6qOyATi2l0ZbA9IpDRD016FomjgvlzR2cMa9JJi8s1DGCVaglhUIWXTofx47O/vzFn01czEwfHEF9 u5RysBkRtI3OqlWtRB5Cro+EVa5RMADievnyMl4/AOPDGrIIvOnOXskReFZ0V158aO9/Kn28rcIW+ wxiSULDJvKD10V9JgHeJng==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1pCYZ3-0007cQ-36; Mon, 02 Jan 2023 23:06:13 -0500 In-Reply-To: <834jta4udt.fsf@gnu.org> (message from Eli Zaretskii on Sun, 01 Jan 2023 08:54:38 +0200) 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:302203 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > > > (setq treesit-language-source-alist > > > '((python "https://github.com/tree-sitter/tree-sitter-python.git") > > > (typescript "https://github.com/tree-sitter/tree-sitter-typescript.git" > > > "typescript/src" "typescript"))) > > > The above was an example of user customizations. There's no such text > anywhere in Emacs, nor there will be. Emacs will be distributed with > that variable having the nil value, and users will have to download > and install the grammar libraries by themselves. That is reassuring. It avoids the specific problem I raised concern about. I could not tell that that code was meant only as a possible user customization; I thought it was a proposed patch. The major modes we > distribute all use grammars whose licenses are free, and as long as we > take care to verify this aspect, there should be no problem here from > this aspect. I agree. > There's a command to download and install a grammar library, but it > leaves it to the user to specify from where to download the library > the user wants. Could you please tell me more? Or tell me how to find that source code? I think there is a significant difference between referring users to a released tarball of some free program, and referring users to a development repo of that same program. In a purely technical sense, any bad thing that is possible with a repo is possible with a release tarball. However, if we consider the social practices of using the two, I think referring users to the repo lacks proper caution -- we shouldn't recommend it to users in general. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)