emacs-devel
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: PGP signature


reply via email to

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