[Top][All Lists]

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

Re: Need for "-ts-mode" modes

From: Eli Zaretskii
Subject: Re: Need for "-ts-mode" modes
Date: Thu, 29 Dec 2022 21:42:48 +0200

> From: Yuan Fu <casouri@gmail.com>
> Date: Thu, 29 Dec 2022 11:27:41 -0800
> Cc: Eli Zaretskii <eliz@gnu.org>,
>  emacs-devel@gnu.org
> I think we should not enable docker-ts-mode in auto-mode-alist if 
> (treesit-language-available-p 'dockerfile) is nil.

I don't see how this could be accomplished, since whether three-sitter
is available for a language is only known at run time, and
auto-mode-alist is in files.el, which is preloaded.

I also don't see any disaster in having an error message in a new mode
which we didn't have before.  It is not a regression.

reply via email to

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