A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01315.html below:

Re: Tree-sitter and major mode inheritance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4