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:24:59 +0000 Message-ID: References: <83edszjslp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000040287805eff39389" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35681"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Perry Smith , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 16 16:26:00 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 1p6Cb1-00094X-KM for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Dec 2022 16:25:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6CaJ-00037c-FH; Fri, 16 Dec 2022 10:25:15 -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 1p6CaH-00034Y-Oq for emacs-devel@gnu.org; Fri, 16 Dec 2022 10:25:13 -0500 Original-Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6CaF-0001FP-UR; Fri, 16 Dec 2022 10:25:13 -0500 Original-Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-14455716674so3643054fac.7; Fri, 16 Dec 2022 07:25:11 -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=nC+G5PxcKZGwWR1mvMeS+iavwPXswoO2Pu9pIHPvjD0=; b=T5VfQSKb7M+Xf4KjFoE2OerVM03yU/PCfjyn8hbX5ioLkaRGfZ7RJS7Pceeu3OmuhJ Xc+ozIjfWcHhL08LBIEuC2hMLM/h5EpK1Kw15yq7H7dXXU1pSZrIy2z16xWN0h4YlEbx OOTrrlEJGMzxWw8iS3v2s0NhjGtnjR/0j+H3GI7Uqkpu3MwcPfVjBmOLST6k/Hokm7rY 6ZasGg+G6A3xcaN6fDZ+djN6pn50kAtl/V40gLeUh9HAdvn4+UCxnCXbzobPcWa3bKng 0W10B665ssUihz7OzOU7aa17wUK/DlefB5rYPOodVNN2oQMWiUIBODPnKeEnIIsY2lVW t2Xg== 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=nC+G5PxcKZGwWR1mvMeS+iavwPXswoO2Pu9pIHPvjD0=; b=Pm6gGOVz9YEBZhPh+n8KG0ghrUiTvieixZU1vZyLUxaSlL2O+QYWshj6FO90s/NXXd XrNfmsSU2nRZc9JMiaQNJlxbodJsZMsgBosJC8bD6g3191QO+bnWGVXZTHI987u3DiDf 9ru9hqH7joCtSzmCvB7C3x9zgff9KqfMoEzpNQcwN/xlUIWEb2kgvzvJpGZmTVL6LPfS l+9CceIV6ptZ8YjtNtmNn2AIjcpK1WX/RPzjNUOFd8ttG74KsddyeZau/BZGdASYMFLh oqYIOwVQZNXuTvHsgWNz45stJ9+CfdXUtTQQEReg0uApc/Iqt24ovOqpdkcRmuAIBfpW 7DIA== X-Gm-Message-State: AFqh2kov5tanJNSJBzX+mIrLBevhwBJtwpY2gQTEadMpqLgvNO7UMmAv U9R4CRJSY4XTklQdSKjkISjlereao+q2cJ/qA/yyEf5QmwE= X-Google-Smtp-Source: AMrXdXvlII8mWzQLO5J4brHnAqBTrfR7vsxkh7tbnROdyHeyvSZCrfVWWL33Y3NYf22W44qpC1kCP8n0F0ILFkWWCkc= X-Received: by 2002:a05:6870:3116:b0:143:7889:c525 with SMTP id v22-20020a056870311600b001437889c525mr442144oaa.171.1671204310097; Fri, 16 Dec 2022 07:25:10 -0800 (PST) In-Reply-To: <83edszjslp.fsf@gnu.org> Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2b.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:301491 Archived-At: --00000000000040287805eff39389 Content-Type: text/plain; charset="UTF-8" On Fri, Dec 16, 2022 at 3:06 PM Eli Zaretskii wrote: > > > From: Perry Smith > > Date: Fri, 16 Dec 2022 08:47:18 -0600 > > > > There are (I believe) four pieces to get Tree Sitter major modes to work. > > > > Emacs needs to be compiled with tree-sitter enabled > > The tree sitter binary needs to be installed > > The tree sitter language specific parser needs to be installed > > The appropriate major mode needs to be loaded and enabled > > That's correct. 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. > > If not, and others agree, how can I help create one? I am thinking the entire page should be small and brief with references to more elaborate details on each of the four steps if needed. > > My main problem is where to put this stuff. Another problem is how to keep this information up-to-date. --00000000000040287805eff39389 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Dec 16, 2022 at 3:06 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > F= rom: Perry Smith <pedz@easesoft= ware.com>
> > Date: Fri, 16 Dec 2022 08:47:18 -0600
>= >
> > There are (I believe) four pieces to get Tree Sitter maj= or modes to work.
> >
> > Emacs needs to be compiled with= tree-sitter enabled
> > The tree sitter binary needs to be instal= led
> > The tree sitter language specific parser needs to be insta= lled
> > The appropriate major mode needs to be loaded and enabled=
>
> That's correct.

I agree this is a problem, espe= cially the language specific parser
bits.=C2=A0 Yesterday I tried out t= ree sitter Emacs on my Arch system.
Finding the tree-sitter system lib w= as easy enough, but finding the C++
definition object wasn't so easy= .=C2=A0 Eventually I made it,=C2=A0 but it needed=C2=A0
compilation fro= m source and a NodeJS toolchain that I didn't know=C2=A0
I ne= eded for that.

> > If not, and others a= gree, how can I help create one?=C2=A0 I am thinking the entire page should= be small and brief with references to more elaborate details on each of th= e four steps if needed.
>
> My main problem is where to put thi= s stuff.

Another problem is how to keep this information= up-to-date.
--00000000000040287805eff39389--