emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter api


From: Eli Zaretskii
Subject: Re: Tree-sitter api
Date: Mon, 13 Sep 2021 21:07:21 +0300

> From: Yuan Fu <casouri@gmail.com>
> Date: Mon, 13 Sep 2021 11:01:47 -0700
> Cc: Tuấn-Anh Nguyễn <ubolonton@gmail.com>,
>  Theodor Thornhill <theo@thornhill.no>,
>  Clément Pit-Claudel <cpitclaudel@gmail.com>,
>  Emacs developers <emacs-devel@gnu.org>,
>  Stefan Monnier <monnier@iro.umontreal.ca>,
>  stephen_leake@stephe-leake.org
> 
> > It makes little sense to me to request each major mode to figure this
> > out.  It should IMO be a service provided by the TS integration into
> > Emacs.
> 
> This is IMO the easiest and least confusing way for major-mode authors. But 
> before we continue, what is the way you envisioned? I’m not sure what exactly 
> is the service you want Emacs to provide.

What I had in mind is a function that give the major-mode symbol will
return the name of the corresponding TS language module (or a list of
modules, if there's more than one).



reply via email to

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