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 doc question Date: Thu, 08 Dec 2022 16:38:09 +0200 Message-ID: <83a63y2c6m.fsf@gnu.org> References: <20221208141247.36l2j3bxggslsykl.ref@Ergus> <20221208141247.36l2j3bxggslsykl@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24302"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 08 15:38:59 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 1p3I38-00064L-UL for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Dec 2022 15:38:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3I2X-00019c-I1; Thu, 08 Dec 2022 09:38:21 -0500 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 1p3I2V-00019C-Fu for emacs-devel@gnu.org; Thu, 08 Dec 2022 09:38:19 -0500 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 1p3I2V-0008Tt-6w; Thu, 08 Dec 2022 09:38:19 -0500 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=LSKBRMLFVRH6So6sPFp9m+qeOVrMs06hdifrg/gT/qo=; b=LM13BU3lzd/O MydVn68FJS5i2sxMyOpKdFW2xjoRvRFi6G1VPV0S+KhKLQouR8lc4whfrsjzZJs6MP7ii3ia+yB+v +TKqi5I2YSb7/j5iDs3kg51iIXSRb9wzXSW+zi5k1nfhys2qm25N/ug+kAfWNlNyGWVJB09+fNKKF f0kxsNI+gVi/RrqmvpFNQnF7IzSxHdvha3fqo6zmWlAmvxuPTtNKidCRe/q8r4gPEEVcIWmlFr/01 WBwFqnXfJFT6Dq2gxiwJf3pEv3QM8IoQ8fxk2qSfWOu6qSRW7JOwhtL+LlN9uEpGpoiK513fgc+B1 R4Z+80dvs8T4X1kgbMASVQ==; 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 1p3I2U-0004BF-MT; Thu, 08 Dec 2022 09:38:19 -0500 In-Reply-To: <20221208141247.36l2j3bxggslsykl@Ergus> (message from Ergus on Thu, 8 Dec 2022 15:12:47 +0100) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301037 Archived-At: > Date: Thu, 8 Dec 2022 15:12:47 +0100 > From: Ergus > > Just a quick question. I see that the tree-sitter changes are already on > master, but I don't find any documentation. Please could you point me > where is it or how to use it? "No documentation" is not accurate: there's a lot in the ELisp manual. User-level documentation was not yet written, we will do that a bit later. > 1) How to check if it is enabled. The modes that rely on it know how to check that. > 2) One enabled (which I think I managed) are the colors in the text from > cc-mode or tree-sitter? The colors are our faces, so the answer is "neither". > 3) What are the features available? May I disable cc-mode and rely on a > pure tree-sitter experience only? Yes. But be prepared to see some unusual things, because those modes are still WIP.