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 and major mode inheritance Date: Sun, 20 Nov 2022 09:11:28 +0200 Message-ID: <837czq6qxr.fsf@gnu.org> References: <0249C656-21C8-49F2-B979-A1894BF80637@gmail.com> <1B76E73A-0DCD-456E-9F28-0E90723DA66D@gmail.com> <83sfif8cl2.fsf@gnu.org> <43E997E4-3449-4974-AB8C-BD5A4AA8A738@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, theo@thornhill.no To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 20 08:11:57 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 1oweUe-0006pV-Ls for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Nov 2022 08:11:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oweUE-0006Ea-KX; Sun, 20 Nov 2022 02:11:30 -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 1oweU6-0006EC-2g for emacs-devel@gnu.org; Sun, 20 Nov 2022 02:11:22 -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 1oweU5-0004ss-99; Sun, 20 Nov 2022 02:11:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QxX42/UZWaKYupotACf8Slx4GG8s/6CKLE43pYXDg9Y=; b=nOH+7MrQeMngJjD/BrAO vgcWKF4PlS8nd7FldNX3laotn5vrOy0RGOhgmz56K2k4/2rSp6w++k8Cvl7Sh8RUZ81jDAiK97sKQ bK4A9HSjQtQzCqzV+XrrrnfFTm4xM25oCpDj14rhZcovuMtNpCJD/eE2qfv4NUy+MyLUB7ltUOPIv dpMyA5rgB1LGc0GBsAzfUX6zaxDRBM3CM4LKccOXH0+TBCdJx6nCTY84Tms12r+pw4h/bwDgNzdIx zSRFPknVFsE016iJLygfKke2MdbSAfSIRGrFXbDYJfGUfSlGMMVMI2hSrHXhg2Y3wfu8zx7Ky98km 3v/IjRFHk1r5VA==; Original-Received: from [87.69.77.57] (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 1oweU3-0008GV-Mm; Sun, 20 Nov 2022 02:11:20 -0500 In-Reply-To: (message from Dmitry Gutov on Sun, 20 Nov 2022 00:03:35 +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:300230 Archived-At: > Date: Sun, 20 Nov 2022 00:03:35 +0200 > Cc: Eli Zaretskii , emacs-devel@gnu.org, > monnier@iro.umontreal.ca, theo@thornhill.no > From: Dmitry Gutov > > On 19.11.2022 23:49, Yuan Fu wrote: > > Actually, that’s evidence supporting his preference: js-mode will remain to be the native implementation, so inheriting from it is exactly as before. Js-ts-mode will install tree-sitter stuff. And js-base-mode wouldn’t do much. > > But js-base-mode will be used in auto-mode-alist? NO!!! auto-mode-alist should keep using js-mode, as it does today. js-base-mode, if we need it, should just be a vehicle for easy sharing of common stuff between several modes that pertain to the same or similar languages. It should NOT be visible to users, so should not appear in any variables users are likely to customize.