[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree-sitter and major mode inheritance

From: Eli Zaretskii
Subject: Re: Tree-sitter and major mode inheritance
Date: Sun, 20 Nov 2022 19:34:26 +0200

> Date: Sun, 20 Nov 2022 19:12:27 +0200
> Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, theo@thornhill.no
> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]