emacs-devel
[Top][All Lists]
Advanced

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

Re: Turning on/off tree-sitter modes


From: Eli Zaretskii
Subject: Re: Turning on/off tree-sitter modes
Date: Tue, 03 Dec 2024 16:14:14 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: dmitry@gutov.dev,  emacs-devel@gnu.org
> Date: Tue, 03 Dec 2024 08:26:01 -0500
> 
> >> Do you have a concrete example?
> >
> > cmake-ts-mode, dockerfile-ts-mode, elixir-ts-mode, lua-ts-mode, to
> > name just a few.  Basically any FOO-ts-mode for which we don't have a
> > corresponding FOO-mode.
> 
> Let's take the `cmake-ts-mode` as an example, then.
> I consider it currently broken:
> 
>     emacs -Q foo.cmake
> 
> should put you in `cmake-ts-mode` when you have the CMake
> tree-sitter grammar installed, but instead it remains in
> fundamental-mode.
> 
> Until this is fixed I don't see any sense in discussing how the users
> can specify whether they prefer `cmake-mode` or `cmake-ts-mode`.

I think we are mis-communicating.  This thread's Subject is "Turning
on/off tree-sitter modes", so I'm asking: what we will tell users to
to do if they want to turn ON cmake-ts-mode?  Surely, the answer to
that question should be part of the solution which we will agree upon
as result of this discussion, right?

I didn't mean to say anything about the imaginary cmake-mode, I meant
to point out that it doesn't exist in Emacs, so our solution to this
cannot be based solely on major-mode-remap-defaults/alist.



reply via email to

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