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: Call for volunteers: add tree-sitter support to major modes Date: Tue, 11 Oct 2022 09:30:29 +0300 Message-ID: <83o7uig9dm.fsf@gnu.org> References: <83czb1jrm3.fsf@gnu.org> <878rlo7on0.fsf@thornhill.no> <83o7uki5ol.fsf@gnu.org> <87tu4c5g9j.fsf@thornhill.no> <835ygshz6k.fsf@gnu.org> <87zge3jj0j.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7931"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theo@thornhill.no, acm@muc.de, emacs-devel@gnu.org, jostein@kjonigsen.net To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 08:36:08 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 1oi8s3-0001rs-Oq for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 08:36:07 +0200 Original-Received: from localhost ([::1]:49310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi8s2-0004wl-DV for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 02:36:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi8mY-0003b9-6h for emacs-devel@gnu.org; Tue, 11 Oct 2022 02:30:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi8mX-00017l-Ds; Tue, 11 Oct 2022 02:30:25 -0400 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=cJa8tL0SLYRZ1JMm3zpG4KOhy7zW1NsqOLmX1Nk8akE=; b=VQygGL9InpKL zx0lI8LJI9yTLsw80m9/KgbBUwAxzQCl0DA9MstzdHEZj4gm1IHcSQEKPxlnIKeo/R2okzwNmyNZT v4vf1DJSq6AooyhZwnXaodbFDYUEfFQmRbGgMNJA2dQvrs5KT1ZXkRcNujukj+0l3K7k9m3R9W1GN T1otmLrWN92VsUtLukw6q3x5UbZep9chfPKFiEFYF1km9Vdh85tV/070AQ/CKx/iqam4rkGvhnQ9v dN/2BSHKtgy2syEiQINXywxacedApEpn1ip7lmRKe2ztI7p/Ffb/bplniP6feed8Uwq60Dz/psKGL d6NSvpyhs+OGYFer792JYg==; Original-Received: from [87.69.77.57] (port=4526 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi8mT-0005Cb-66; Tue, 11 Oct 2022 02:30:23 -0400 In-Reply-To: <87zge3jj0j.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 11 Oct 2022 02:34:04 +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" Xref: news.gmane.io gmane.emacs.devel:297423 Archived-At: > From: Lars Ingebrigtsen > Cc: Theodor Thornhill , acm@muc.de, > emacs-devel@gnu.org, jostein@kjonigsen.net > Date: Tue, 11 Oct 2022 02:34:04 +0200 > > Eli Zaretskii 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. > >> > >> What do you think? > > > > SGTM, but I'd like to hear from Lars as well. > > It's somewhat confusing that we have some modes that are tree-sitter-only > and some what can switch between using tree-sitter and not, but I guess > that's inevitable. We could arrange for a very minimal font-lock without tree-sitter (like, for example, only strings and comments?), and use the defaults for the indentation commands. Theodor, can that be done with a relatively small effort? > But I think the in-tree tree-sitter typescript-mode will have to be > called something else than the out-of-tree non-tree-sitter one, at > least. That's desirable, yes.