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 19:34:26 +0200 Message-ID: <83wn7p4jj1.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> <83a64m6r70.fsf@gnu.org> <017d0373-4573-ca13-e887-a97e7c160a74@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18543"; 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 18:35:16 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 1owoDr-0004XK-Pt for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Nov 2022 18:35:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owoDH-00049Y-MJ; Sun, 20 Nov 2022 12:34:39 -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 1owoDE-00049C-HT for emacs-devel@gnu.org; Sun, 20 Nov 2022 12:34:36 -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 1owoDD-0000vN-R0; Sun, 20 Nov 2022 12:34:35 -0500 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=pCr6Zl1IbIg6mVoaNVen/qbAQPVPiNMf33Xtf9YhvIE=; b=QZOrgs4UtyFT WAtjMpHucQelp0Sj3V4ElyI4sElYO+mrQ1X30i+aSi2blUgSmRto5UFkIk2xh2kneF7szYIuakpAX oDql2Ud47rXe/scIAaDbZwnWwdigh6o+XkR2A/uflIE/Oe0LU+c5UemzMyfVgMCeVOGEGy907oiQx AV9GjVVEjUiGHonKIkmn/Os3Tf28J8l5O922hfqbNYyjH8bv/myrNV/ktB3l5uPnA7T7HmFl2s2JN k9Ty4oQexyZQvbzMAS7IqLrMnKbV/XZw2UjlNIJc4hZCTbLe0Xq6yLwc5r9AMbAtJr68OrktqAQMT hD7ZO2zWoylW/BMkjFTyLA==; 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 1owoCu-0001sI-JM; Sun, 20 Nov 2022 12:34:18 -0500 In-Reply-To: <017d0373-4573-ca13-e887-a97e7c160a74@yandex.ru> (message from Dmitry Gutov on Sun, 20 Nov 2022 19:12:27 +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:300258 Archived-At: > Date: Sun, 20 Nov 2022 19:12:27 +0200 > Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, theo@thornhill.no > From: Dmitry Gutov > > On 20.11.2022 09:05, Eli Zaretskii wrote: > > Why do we need js-base-mode? what will it do? > > I was under the impression that it would dispatch either to js-mode or > to js-ts-mode based on the value of some global defcustom like > treesit-global-modes (similar in structure for font-lock-global-modes). > > But I guess not. If that choice is going to be made instead through > auto-mode-alist and major-mode-remap-alist. Yes, I prefer to hide the *-base-mode modes from users as much as possible, or not have them at all. I think it will prevent confusion.