emacs-devel
[Top][All Lists]
Advanced

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

Re: How to add pseudo vector types


From: Yuan Fu
Subject: Re: How to add pseudo vector types
Date: Thu, 15 Jul 2021 11:17:02 -0400


> On Jul 15, 2021, at 10:18 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Fu Yuan <casouri@gmail.com>
>> Date: Thu, 15 Jul 2021 09:37:27 -0400
>> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
>> 
>>> Thanks, but why does it parse only strings, not buffer text?
>> 
>> I haven’t written it yet. I want to make sure the pseudo vector definition 
>> and configure files are right before going further. IIRC the contribution 
>> guide recommends sending small patches and update along the way.
> 
> Great, then please try also to liberate the implementation from using
> JSON, it's a major slowdown factor.

JSON? I didn’t write anything involving JSON. 

While you are looking at the patch, here are some questions for integrating 
tree-sitter with out buffer implementation. What I envisioned is for each 
buffer to have a `parser-list’, and on buffer change, we update each parser’s 
tree. I think modifying signal_after_change is enough to cover al the cases? 
And, for tree-sitter to take the buffer’s content directly, we need to tell it 
to skip the gap. I only need to modify gap_left, gap_right, make_gap_smaller 
and make_gap_larger, right?

Yuan


reply via email to

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