emacs-devel
[Top][All Lists]
Advanced

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

Re: Hosting tree-sitter pre-built language definitions on ELPA?


From: Eli Zaretskii
Subject: Re: Hosting tree-sitter pre-built language definitions on ELPA?
Date: Sun, 02 Oct 2022 20:06:12 +0300

> From: chad <yandros@gmail.com>
> Date: Sun, 2 Oct 2022 12:36:23 -0400
> Cc: luangruo@yahoo.com, casouri@gmail.com, emacs-devel@gnu.org
> 
> On Sun, Oct 2, 2022 at 9:52 AM Eli Zaretskii <eliz@gnu.org> wrote:
> 
>  We are not talking about changing the language definitions, we are
>  talking about installing the ones provided by tree-sitter.  The use
>  case you mention is akin to your wanting to modify librsvg -- in which
>  case you'd need to start by installing Rust.
> 
> I _think_ I disagree about that analogy. If I want to use tree-sitter with a 
> language that is not already somehow
> installed on my computer, I need a language definition for it. Right now, I 
> can either install Node.js and build it
> myself, or download a binary from github. Is there another option?

Yes, you can download the C source of the language definition and
compile it yourself.

> IIUC, the current expectation is NOT that
> an emacs+tree-sitter release will bundle language definitions for every 
> language we expect the users are
> likely to want, or even for, say, the top 10 languages already supported by 
> emacs outside of treesit. Is that
> understanding incorrect? 

Yes.  I don't think it's fair to expect the Emacs project to provide
such degree of hand-holding.  It would place too much burden on our
insufficient resources.

If downloading and building the tree-sitter language definitions is
too much for many users, I expect the Emacs distros to provide
prebuilt packages for that.




reply via email to

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