emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter api


From: Yuan Fu
Subject: Re: Tree-sitter api
Date: Thu, 16 Dec 2021 16:14:52 -0800


> On Dec 13, 2021, at 11:19 PM, Yuan Fu <casouri@gmail.com> wrote:
> 
>>> 
>>> It’s been a while and no one provided further comments on the indent and 
>>> font-lock integration of tree-sitter, so I finished the manuals for indent 
>>> and font-lock integration. They are under 24.6 Font Lock Mode and 24.7 
>>> Automatic Indentation of code. Once the author of tree-sitter allow 
>>> tree-sitter to change malloc implementation at runtime, tree-sitter 
>>> integration will be ready. (Though I suspect that won’t come soon. The 
>>> author is still actively developing tree-sitter but he didn’t reply to my 
>>> request.)
>> 
>> Would you please ping the authors and tell them that this single issue
>> prevents us from integrating TS into Emacs?  Maybe that would change
>> their priorities.  I cannot imagine that the feature we are asking is
>> hard to implement.
> 
> Done.

Someone commented on my request saying

> Had this issue as well, but thought was too niche to open an issue. The 
> standard way to change the allocator at runtime is with the  LD_PRELOAD 
> envvar (see mimalloc or any allocator doc).

IIUC it is more of a user-feature right? Like you will use LD_PRELOAD=xxx 
program but not change the environment programmatically in the program? Could 
Emacs do this should tree-sitter doesn’t want to change?

BTW the conversation is at 
https://github.com/tree-sitter/tree-sitter/issues/1535

The author suggested to implement runtime change of malloc on top of current 
macros, but I think he missed the point (we don’t want to maintain our own 
version of tree-sitter).

Yuan


reply via email to

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