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: Sat, 10 Dec 2022 10:46:40 +0200 Message-ID: <83h6y3y7bj.fsf@gnu.org> References: <83y1rgzsk4.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 10 09:47:08 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 1p3vVi-0008w5-DY for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Dec 2022 09:47:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3vVT-0007Q6-2B; Sat, 10 Dec 2022 03:46:51 -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 1p3vVP-0007Pj-Oq for emacs-devel@gnu.org; Sat, 10 Dec 2022 03:46:48 -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 1p3vVO-000337-Mw; Sat, 10 Dec 2022 03:46:47 -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=Xd06eQZBJhnJ6fE3ZrfXLTdxU80xzvnbzgQjtlvHQK4=; b=qDCCTrddnWFd arjp+NR5uL0GghgqzhGmUwgXOHc7f6KNKLcq+i5B8/PayoMuOJYr6jIYNub/rbpx+QgxJGcS0Z7R4 wbFLDgUJtC0YTxGB1qvOp+93+zdMTwEcjW2aiS/++f/lQ1PCmkUtBrvOqhqZMGS95B43fBG+1IwY5 WBYWHA5Yx3w9N9yJO8xDdgpjeS0LzexsrzYd8pgzYOw34CZadGl66Ngzn1Pczom967Xy6PA+gueEg wJAtU96K0u/TNxYwiDWjfwrLj4bSfOf4J9ZIknCyt6wUne3Ejld07OFmKfcbrDokhvTwxOIhhFm+L pR2WE9wr6SZA1uu6SRswLQ==; 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 1p3vVM-0006s0-Jk; Sat, 10 Dec 2022 03:46:46 -0500 In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Sat, 10 Dec 2022 08:29:08 +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:301103 Archived-At: > From: Pedro Andres Aranda Gutierrez > Date: Sat, 10 Dec 2022 08:29:08 +0100 > Cc: emacs-devel@gnu.org > > To start testing tree-sitter, do I "just" need to include --enable-tree-sitter in my configure step or do I need > something (more|else) on a > clean-slate (Linux|macOS) system? Does the emacs build process provide all the necessary steps or is > some external configuration/installation > needed? You need to make sure the tree-sitter library is installed, and so are the grammar libraries for the programming languages you want to use. Then just rebuild Emacs; --enable-tree-sitter is ON by default, so if you have the library installed, the build process with DTRT. > This is the kind of "extra documentation" some of us are yearning for ;-) The above is not different from any other optional library, such as GnuTLS or librsvg. The exact commands to install them depend on the distro you are using, and we don't describe them in our documentation.