[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter maturity
From: |
Xiyue Deng |
Subject: |
Re: Tree-sitter maturity |
Date: |
Tue, 24 Dec 2024 13:31:29 -0800 |
User-agent: |
Notmuch/0.38.1 (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Richard Stallman <rms@gnu.org>
>> Cc: emacs-devel@gnu.org
>> Date: Mon, 23 Dec 2024 23:52:43 -0500
>>
>> Ideally, users should be able install the grammars separately, perhaps
>> using their `make install' or `apt', and Emacs would only use them
>> where they normally get installed. That is ideal because it is not
>> very integrated -- it preserves modularity. In particular, it assures
>> that the details of how they get installed are not a direct concern of
>> Emacs maintenance.
>
> Emacs needs to be built with the tree-sitter library to support the
> modes based on it, and the grammar library needs to be installed. If
> Emacs was built without tree-sitter, or if the grammar required for a
> mode is not installed, the mode will display a warning to that effect.
>
Not sure whether this has been mentioned: there is a "treesit-auto"[1]
addon on melpa that can detect missing treesitter grammars and handle
their installation automatically. It would be great if something
similar can be integrated into core, and if possible, grammar version
handling and compatibility with distribution supplied grammar would be
good to have.
[1] https://github.com/renzmann/treesit-auto
--
Regards,
Xiyue Deng
signature.asc
Description: PGP signature
- Re: Tree-sitter maturity, Yuan Fu, 2024/12/17
- Re: Tree-sitter maturity, Eli Zaretskii, 2024/12/18
- Re: Tree-sitter maturity, Yuan Fu, 2024/12/18
- Re: Tree-sitter maturity, Eli Zaretskii, 2024/12/19
- Re: Tree-sitter maturity, Björn Bidar, 2024/12/20
- Message not available
- Re: Tree-sitter maturity, Yuan Fu, 2024/12/20
- Re: Tree-sitter maturity, Björn Bidar, 2024/12/22
- Re: Tree-sitter maturity, Richard Stallman, 2024/12/23
- Re: Tree-sitter maturity, Eli Zaretskii, 2024/12/24
- Re: Tree-sitter maturity,
Xiyue Deng <=
- Re: Tree-sitter maturity, Richard Stallman, 2024/12/25
- Re: Tree-sitter maturity, Philip Kaludercic, 2024/12/27
- Re: Tree-sitter maturity, Eli Zaretskii, 2024/12/27
- Re: Tree-sitter maturity, Daniel Colascione, 2024/12/27
- Re: Tree-sitter maturity, Philip Kaludercic, 2024/12/27
- Re: Tree-sitter maturity, Daniel Colascione, 2024/12/27
- Re: Tree-sitter maturity, Philip Kaludercic, 2024/12/27
- Re: Tree-sitter maturity, Philip Kaludercic, 2024/12/27
- Re: Tree-sitter maturity, Richard Stallman, 2024/12/28
- Re: Tree-sitter maturity, Daniel Colascione, 2024/12/28