emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter indentation for js-mode & cc-mode


From: Yuan Fu
Subject: Re: Tree-sitter indentation for js-mode & cc-mode
Date: Fri, 28 Oct 2022 23:54:18 -0700


> On Oct 28, 2022, at 10:53 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Fri, 28 Oct 2022 12:43:31 -0700
>> Cc: emacs-devel <emacs-devel@gnu.org>,
>> Stefan Monnier <monnier@iro.umontreal.ca>
>> 
>> Tree-sitter indent should add an implementation for indent-for-region 
>> function which precomputes indent for each line and indent lines in batch. 
>> That ought to fix it. Added to TODO :-)
> 
> I think this conclusion should be also in the manual, where we
> describe how to provide indentation capabilities based on tree-sitter?

Ah, yes, thanks for reminding me. I have some new things to add to the major 
modes section (and some to remove).

Yuan


reply via email to

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