emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter and major mode inheritance


From: Po Lu
Subject: Re: Tree-sitter and major mode inheritance
Date: Sun, 20 Nov 2022 08:38:58 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> To the extent that Emacs-29's new `major-mode-remap-alist` can be used
> to select which mode to use, we can indeed leave the original modes
> as-is.

Yes, but you seem to contradict that preference below:

> - `<foo>-mode` as a dispatch function that calls the appropriate specific
>   major mode which could be `<foo>-ts-mode`, or `cc-<foo>-mode`, or
>   `<foo>-with-JSX-mode`, or ...

Why can't c-ts-mode be a separate mode, unrelated to c-mode in any way?
AFAIU it's supposed to be an optional feature users are supposed to turn
on for themselves.


reply via email to

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