From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Tue, 27 Dec 2022 13:44:43 -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> <838ris22n4.fsf@gnu.org> <8335901zz3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24324"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dgutov@yandex.ru, theophilusx@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 27 19:45:24 2022 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 1pAEx1-000676-8m for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Dec 2022 19:45:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAEwX-00055C-KJ; Tue, 27 Dec 2022 13:44:53 -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 1pAEwV-000553-QG for emacs-devel@gnu.org; Tue, 27 Dec 2022 13:44:51 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAEwU-0002yA-0c; Tue, 27 Dec 2022 13:44:51 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 641FE442FC9; Tue, 27 Dec 2022 13:44:47 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C3115442FC5; Tue, 27 Dec 2022 13:44:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1672166685; bh=hbTrfYLbCz9a3KWQbXmdfrxzIb0Lmni/mki/g4D8ag8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nkhi/optKz9Ta3jvC7Uli21/QRqkMb0BLVaShqlCeVIFn95WaSaPn0axtRaVeEyiZ RLB+L0snHpgTDk973k5kDVifCHxBXVaR8vhgctDARFinRYIlX15HuJ7fPv5NOPbUdw oeGpjZzSdlVDw/f5K3L3/c9vs6buj6TCs5tHdNcI6KvOOy7KmeChChatn+SH30TOs0 AqXJfRqVJAD03y9z5nxDHOBWMDEvVr4r966r0rO5did2l0VHpsA1isQbQdw/TV6lvD SCMLSlv/Ww2zLekd1iJeZqxEeZW5ZOCogxDJs3vjB97lA6xfOpeywdcZK5U9GNJjjR 3MSWJmNblCPTw== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8EF93120974; Tue, 27 Dec 2022 13:44:45 -0500 (EST) In-Reply-To: <8335901zz3.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Dec 2022 20:08:32 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:301983 Archived-At: Eli Zaretskii [2022-12-27 20:08:32] wrote: > Good luck with that! It requires to install Node.js and other stiff, > which I personally won't touch with a 3-mile pole, and I'm unsure (but > never bothered to find out) whether free replacements even exist. That's the part of Tree-sitter which makes me a bit uneasy. In Emacs, we usually don't just stick to the letter of the Free Software principles (e.g. release our code under the GPL) but we try to go the extra miles so that our users can actually exercise their rights as easily as possible (e.g. with things like `C-h k` that lets them jump straight to the source, ...). But with Tree-sitter, our users are currently a bit stuck. The grammars are Free, yes, but it takes a fair bit of extra work (and potentially even some code with unclear licensing along the way) if you want to modify their source code and use the result :-( Maybe building our own `.c` grammars from source would be a way for us to face up to this reality :-( Stefan