From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Fri, 16 Dec 2022 15:56:01 +0000 Message-ID: References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000042e83705eff40298" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32118"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Perry Smith , emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 16 16:56:42 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 1p6D4j-0008B7-Am for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Dec 2022 16:56:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6D4O-0003EZ-Bd; Fri, 16 Dec 2022 10:56:20 -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 1p6D4K-0003E7-JR for emacs-devel@gnu.org; Fri, 16 Dec 2022 10:56:16 -0500 Original-Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6D4I-0000ii-QC; Fri, 16 Dec 2022 10:56:16 -0500 Original-Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-12c8312131fso3771218fac.4; Fri, 16 Dec 2022 07:56:13 -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=JK75s0KrTTBcjKnAOBwTTVJRtaYc+aRuEJPG44Jvid8=; b=JrQxhLMi8FgSPq9dvenF3IrbJCMU66Ph13vzPfjZ03JOY533LhZOZ7l5rJ6WFpoPe0 WjM3IK4Tvu9ZwVQSqpC3P9fCgOyhlLu7SOoM0HTtD5t8k508Srq5HN31psoX1ZscYVfU gqbLHZA3zdMsi2564+s5yoKR7+pP1sziCSIxHTcpvE/x40m/uQnHroXmPSwBx+LYS38u x6WNNFD0NJf5zcZTMWseP9fRM/gFTIO5atT4KYaA2vqkLu82RA+sp60Q+kWA8i6zQQSB 0boPKMYungVi+qI7cYm5CsN9myW8kaCnCmGh1ZTPA2b0EXST9whN5kJApHYfaD98hJUe E8sw== 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=JK75s0KrTTBcjKnAOBwTTVJRtaYc+aRuEJPG44Jvid8=; b=61B3CDgCoCX0OBDBAARMJf//EsicXhddZ8AKCpHzK22YMgGg8ECmodo7x1mdqyx8Pr a8XKSkym517K354ozPApFVmHVfiOhR5t8rtAqXa3syW8GgSN475KyldcXPqF4igj5jpR ANYu1UA0H/k+NAN1Oz6Um4LqgM5tkl3P2ZpnpOjlyiiXCiCqfyBFjxLkAvTQ1m2V0eBc ogCXQc/ThbYMbRSirMYLTmn0E3L7n2Es8HC2RmfTq4c/V4ki4VYWVC09TfznNOCKi9lK Wz8ra+WBob0nSTA7Sr1aG8xH7wlWjJPO64Ed+ZEfIXqIGdmDTE0yeHRKLQ8t5hyE3Gjd D6tQ== X-Gm-Message-State: AFqh2kqm/XB/sA1UoQqzjf2rr/CZEvH5OVa1Ionwq70Sfd1FfY96Yin8 jqJFS2yIceOsbtyJLGw1XXZKpd4WMsH8YfE49qo5QQB7 X-Google-Smtp-Source: AMrXdXsq06sYBoQqEuQ2dfNYZ2hhwM2mhZT7FnimIT+PmWkguHbKUP5BIDeb9/ROQkG60TEGZxqYUv8MIhlgRBnv82I= X-Received: by 2002:a05:6870:ab08:b0:148:143f:a6b4 with SMTP id gu8-20020a056870ab0800b00148143fa6b4mr905152oab.215.1671206172549; Fri, 16 Dec 2022 07:56:12 -0800 (PST) In-Reply-To: <87tu1vxs3a.fsf@ledu-giraud.fr> Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x29.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:301499 Archived-At: --00000000000042e83705eff40298 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 16, 2022 at 3:53 PM Manuel Giraud wrote= : > Jo=C3=A3o T=C3=A1vora writes: > > [...] > > > I agree this is a problem, especially the language specific parser > > bits. Yesterday I tried out tree sitter Emacs on my Arch system. > > Finding the tree-sitter system lib was easy enough, but finding the C++ > > definition object wasn't so easy. Eventually I made it, but it needed > > compilation from source and a NodeJS toolchain that I didn't know > > I needed for that. > > Wait, what? I thought that emacs would come with such tree-sitter > language definitions (at least for languages supported by > emacs/treesitter). I'm on openbsd myself and those language specific > parsers don't seem to be packaged here: "pkg_info -Q sitter" returns > only "tree-sitter-0.20.6p2". I'm not sure I want to play with NodeJS. > > IMHO, should tree-sitter become the new official way to have programming > modes it have to be easier to the end user, no? > I agree completely, but wait, maybe not. Maybe I was seriously overcomplicating, see Eli's response. --00000000000042e83705eff40298 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Dec 16, 2022 at 3:53 PM Manuel Gi= raud <manuel@ledu-giraud.fr= > wrote:
Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com> writes:

[...]

> I agree this is a problem, especially the language specific parser
> bits.=C2=A0 Yesterday I tried out tree sitter Emacs on my Arch system.=
> Finding the tree-sitter system lib was easy enough, but finding the C+= +
> definition object wasn't so easy.=C2=A0 Eventually I made it,=C2= =A0 but it needed
> compilation from source and a NodeJS toolchain that I didn't know<= br> > I needed for that.

Wait, what?=C2=A0 I thought that emacs would come with such tree-sitter
language definitions (at least for languages supported by
emacs/treesitter).=C2=A0 I'm on openbsd myself and those language speci= fic
parsers don't seem to be packaged here: "pkg_info -Q sitter" = returns
only "tree-sitter-0.20.6p2".=C2=A0 I'm not sure I want to pla= y with NodeJS.

IMHO, should tree-sitter become the new official way to have programming modes it have to be easier to the end user, no?
=C2=A0=
I agree completely, but wait, maybe not.=C2=A0 Maybe I was serio= usly=C2=A0
overcomplicating, see Eli's response.=C2=A0
<= /div>
--00000000000042e83705eff40298--