From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter indentation for js-mode & cc-mode Date: Sat, 29 Oct 2022 08:53:40 +0300 Message-ID: <834jvnjhuj.fsf@gnu.org> References: <9AF8BFDC-C9A2-4AE5-A8D2-E6AA05DA3C91@gmail.com> <87k04lljh6.fsf@thornhill.no> <541CF451-6FAC-4531-A8AF-8C86FBB9D40B@thornhill.no> <425E0075-3F44-4832-BA2E-61E7D0A26FF4@gmail.com> <87mt9ggvph.fsf@thornhill.no> <89721927-13CE-4A65-944C-0DC924127373@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20572"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theo@thornhill.no, emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 29 07:55:13 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooeoK-000595-A0 for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Oct 2022 07:55:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooemw-0004aD-Qe; Sat, 29 Oct 2022 01:53:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooemu-0004YL-9z for emacs-devel@gnu.org; Sat, 29 Oct 2022 01:53:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooemt-0002zp-VX; Sat, 29 Oct 2022 01:53:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U1IIjfdwMPEx3+M07se1/TxYy9XGVCxjdgBQ2NkhLrg=; b=bvUZiNlqRcE6 mNzdHD6r0rIuAfIb7m1Tgq5Fq+NasywHuqSeEzOav/z5mCFcwyTOY5FTEjHWEgN5SYdLjbXd0lasA 9KUVCcYqTRoRYOyRMBtcrU5yI0riyAZLQkvFXf6WbYDE/FUJ415Gilnzs+fHp1wQ+Ep0eaB0xslSR 005CV4xRcMYSjlsaINadhuUAKyR2YeQejp58W+NhXskoHhZrW3iMvbw9S+c+FTJr80x5f/h0gvPUU kN2/7yBPGdx7MCKtUS4vBuBeJeSp1oVvYM7Uq44quWpe+9qF0ZzhcoN1ISmQVTidmVBHD8SQXVnM4 0ewWm5ca26CDELD748fPZw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooemt-0006XB-8O; Sat, 29 Oct 2022 01:53:43 -0400 In-Reply-To: <89721927-13CE-4A65-944C-0DC924127373@gmail.com> (message from Yuan Fu on Fri, 28 Oct 2022 12:43:31 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298720 Archived-At: > From: Yuan Fu > Date: Fri, 28 Oct 2022 12:43:31 -0700 > Cc: emacs-devel , > Stefan Monnier > > 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?