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: Call for volunteers: add tree-sitter support to major modes Date: Tue, 11 Oct 2022 17:14:30 -0400 Message-ID: References: <83czb1jrm3.fsf@gnu.org> <878rlo7on0.fsf@thornhill.no> <83o7uki5ol.fsf@gnu.org> <87tu4c5g9j.fsf@thornhill.no> <87k057j7gn.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34359"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Theodor Thornhill , Eli Zaretskii , Alan Mackenzie , emacs-devel@gnu.org, jostein@kjonigsen.net To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 23:42:45 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 1oiN1Q-0008kF-2N for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 23:42:44 +0200 Original-Received: from localhost ([::1]:45480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiN1O-0003aH-NX for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 17:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiMaF-0007yd-A9 for emacs-devel@gnu.org; Tue, 11 Oct 2022 17:14:40 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:5624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiMaB-0005JE-83; Tue, 11 Oct 2022 17:14:37 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C3558804AB; Tue, 11 Oct 2022 17:14:32 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 59FC680091; Tue, 11 Oct 2022 17:14:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1665522871; bh=NyJFy0RsEgwj8Q6M665EmWcnah0/XQE6hRxRePOhmaA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ADM200gYVXT/mQDSv9TtMPynnO1erfdm7oH1h50BUXDfHhIGOANxX0Q0XwvuLsBTI 96tC0zMsWD140kR9i1U0gYXFFjYkEaxXrugyYGQb/C9szeo9U6iHbl8Bg+Ax5r9vFp j9VVQkW4ykuANI8XiRc0dzVGf+TsIKlIHcq9ncqjkp/zNq/MfB87jBkay8KfhL513u kyneKrO7xGKt1k/vs/WFbAvYkNVfNm5MXF2XdQzlu+khB94v9RitWPF97zgAsMr0Ic PA2E2Mzy1/7VqPwq46TXOQFKAlpRO7iiB77vO+nIXiqSp7Ejq1H1PlZAKb5CvisUBA el49M10xdztWw== Original-Received: from alfajor (modemcable047.72-202-24.mc.videotron.ca [24.202.72.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 293E8120E71; Tue, 11 Oct 2022 17:14:31 -0400 (EDT) In-Reply-To: <87k057j7gn.fsf@yahoo.com> (Po Lu's message of "Tue, 11 Oct 2022 12:43:36 +0800") 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" Xref: news.gmane.io gmane.emacs.devel:297545 Archived-At: Po Lu [2022-10-11 12:43:36] wrote: > Theodor Thornhill writes: >> My suggestion is to add the tree-sitter variant in these cases, and let >> the other modes die a slow, deprecated death down the line. > In that case, will any of you object if someone writes a parser > generator in C and an implementation of the tree-sitter runtime library > that can be included with Emacs itself (namely, with the copyright > assigned to the FSF?) Beside Eli's objection, with which I completely agree, I can't see any benefit at all. > My opinion is that Emacs should not degrade its text editing > capabilities so drastically if a non-system library (i.e. not ncurses > or Xlib) is not present. That's easy to fix: make tree-sitter a required dependency. No need to maintain our own version of it. If/when tree-sitter becomes unmaintained, we may decide to revisit this choice, but I see no reason to cross this bridge in the foreseeable future. We already reinvent many more wheels than we should. Stefan