bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#60559: 29.0.60; "Cannot activate tree-sitter" spam


From: Eli Zaretskii
Subject: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam
Date: Thu, 05 Jan 2023 10:56:16 +0200

> Date: Thu, 05 Jan 2023 08:44:30 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: Fu Yuan <casouri@gmail.com>, Stefan Monnier <monnier@iro.umontreal.ca>, 
>     Lars Ingebrigtsen <larsi@gnus.org>, Theodor Thornhill 
> <theo@thornhill.no>, 
>     Jostein Kjønigsen <jostein@secure.kjonigsen.net>, 
>     60559@debbugs.gnu.org, epg@pretzelnet.org, mardani29@yahoo.es
> 
> I suggest a slightly different solution: add a global minor mode, say 
> 'ts-modes'.  Users would only have to add (ts-modes 1) in their init 
> files, and the logic would be:
> 
> (treesit-available-p) ts-modes
> nil                   nil      => do nothing
> nil                   t        => warning
> t                     nil      => use available tree-sitter modes
> t                     t        => use available tree-sitter modes
> 
> This seems more future-proof: otherwise users who want to user the 
> available tree-sitter modes would have to require all such modes.  ATM 
> there are only 19, but Emacs 30 could very well have twice or thrice that 
> number of tree-sitter modes.

Thanks.  This was already considered.  I don't like asking users to
customize a list as a means of activating an optional mode.  I also
don't think we have enough information for committing ourselves to
such a solution at this stage.

So I'd prefer not to do this on the release branch.





reply via email to

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