From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter doc question Date: Sat, 10 Dec 2022 12:14:00 +0100 Message-ID: References: <83y1rgzsk4.fsf@gnu.org> <83h6y3y7bj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009917c105ef775faa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12489"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 10 12:15:10 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 1p3xp0-00035p-QZ for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Dec 2022 12:15:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3xoR-00028N-Hw; Sat, 10 Dec 2022 06:14:35 -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 1p3xoP-000287-VN for emacs-devel@gnu.org; Sat, 10 Dec 2022 06:14:33 -0500 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3xoN-0000Cd-PC; Sat, 10 Dec 2022 06:14:33 -0500 Original-Received: by mail-oi1-x22a.google.com with SMTP id t62so6840192oib.12; Sat, 10 Dec 2022 03:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zNeEb962rChdMmNaa/qSbGwtH0g+LLHJNw8THX4HIaw=; b=UwxCwVsp7ICkPyX+EKyEs38RqV2JQOIy8lqwaTg/DfdlTALwbzsAmKhs/Hw2gA9qFR I4h0x/YhyXwRQWIgiTHAOQOr5MJAicHPUqSuT9ly7a6kmo6LDBC9u7ed5HPVVyqw6/te GBrePwiGNbwWkC4fSW4cBYfyDZxiWeGB0L0n0ELJCMVU03szoEs5aN+Z3uV9A+R4Z0yp 00ka2ebv7ePKoQzlCuG2hkZ095jdinKzZpvd7KIA3TuW8RYxjjA+Wd+FrO9IWc/H9gse +0Ysu+iM0mx+6supAr4qG5o2g3qwnYG5K7j89ILLURJWBucpmIxYuVHryuSmKCs/ngFE 6N/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zNeEb962rChdMmNaa/qSbGwtH0g+LLHJNw8THX4HIaw=; b=45x5sAjqydvuflBXsGBShlmzD5M2nyrikWQC2pCIXwrb3Ferv8nu9OL0UkmuEcI8iW 9ksTlBKNhkaF95iEGObeWHqgkojxXfigmDN18SwOEbgGMw8JPZbHh1z52MSifhejDnJQ KoluBm/0SKaFRnDJCA0HB4WBNAMdBRBwes91qPwa8wiVreJDJXBCp7Zvt8ukEPWBla97 zVr9nX1vyiW0gClfybseAwaqbIKcXklycRK2efzL4UlQJXaIvbsuEB53Yozi0bAOUSgJ diOSO6omvGVysmJVbwB6q05yDp5C1gfggC0EgPB6/fHFYW3eFkEreWJlhCECOjQqc9mx FNvg== X-Gm-Message-State: ANoB5plTxazbklqhN8xC78gVHZzSGuC2/uuGpAJE/zvISWNrUUXriQFm IvGX8NbFEOODZKlIXlJgJLhrbx4mq5AhSOUcBCSL+NG5vCgcJQ== X-Google-Smtp-Source: AA0mqf62ygReXoCDvuvRBYgWudr8Dxiyx9NfxpX/nXCdGyDp8niMysiM4Z8aWNP+eb97Bk6jK8zIQ3MEQaKjWuSaSPg= X-Received: by 2002:aca:ba55:0:b0:354:da0e:a0d8 with SMTP id k82-20020acaba55000000b00354da0ea0d8mr47142023oif.280.1670670867566; Sat, 10 Dec 2022 03:14:27 -0800 (PST) In-Reply-To: <83h6y3y7bj.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=paaguti@gmail.com; helo=mail-oi1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:301105 Archived-At: --0000000000009917c105ef775faa Content-Type: text/plain; charset="UTF-8" Eli writes: > 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. Thanks for the clarification. I was misled by finding some tree-sitter related files in the admin/ directory tree. As far as I see, tree-sitter is not very widely provided (as opposed to GnuTLS or librsvg...) I'm on Ubuntu 20.04 LTS and have little time to face a migration to 22.04 and I haven't found anyone providing a PPA to install tree-sitter on my system. Same might also be true for many Debian users... Well... it will have to wait until the summer (if and when I have spare cycles to upgrade the system). Anyhow, there are plenty of things to look inside Emacs on my practically non-existing free cycles now. :-) Thanks again, WR,/PA On Sat, 10 Dec 2022 at 09:46, Eli Zaretskii wrote: > > 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. > -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --0000000000009917c105ef775faa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Eli writes:

> The above is not different from any other optional library, suc= h as
> GnuTLS or librsvg.=C2=A0 The exact commands to install them de= pend on the
> distro you are using, and we don't describe them in= our documentation.

Thanks for the clarificati= on. I was misled by finding some tree-sitter related files=C2=A0
= in the admin/ directory tree.=C2=A0 As far as I see, tree-sitter is not ver= y widely provided (as
opposed to GnuTLS or librsvg...)
=
I'm on Ubuntu 20.04 LTS and have little time to face a m= igration to 22.04 and I haven't
found anyone providing a PPA = to install tree-sitter on my system. Same might also
be true for = many Debian users...

Well... it will have to wait = until the summer (if and when I have spare cycles to upgrade the system).
Anyhow, there are plenty of things to look inside Emacs on my prac= tically non-existing free cycles now.
:-)

Thanks again,
WR,/PA

On Sat, 10 Dec 2022 at 09= :46, Eli Zaretskii <eliz@gnu.org>= wrote:
> Fro= m: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Sat, 10 Dec 2022 08:29:08 +0100
> Cc: emacs-dev= el@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 yea= rning for ;-)

The above is not different from any other optional library, such as
GnuTLS or librsvg.=C2=A0 The exact commands to install them depend on the distro you are using, and we don't describe them in our documentation.<= br>


--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um = gestellt zu werden
Georg Kreisler

Headach= es with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.u= niter.operation we should run a leader-deposed hook here, but we can't = yet

--0000000000009917c105ef775faa--