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 introduction documentation Date: Sun, 18 Dec 2022 11:39:10 +0100 Message-ID: References: <83zgblf84a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b547be05f017d1a1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26054"; 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 Sun Dec 18 11:40:21 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 1p6r5g-0006e1-Ol for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Dec 2022 11:40:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6r54-0006BR-1j; Sun, 18 Dec 2022 05:39:42 -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 1p6r53-0006BG-1C for emacs-devel@gnu.org; Sun, 18 Dec 2022 05:39:41 -0500 Original-Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6r51-0006BF-B7; Sun, 18 Dec 2022 05:39:40 -0500 Original-Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-12c8312131fso8511717fac.4; Sun, 18 Dec 2022 02:39:38 -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=yIeYnStlqIX5rrPTgambgzw4xyiTftg4pwWt5xbI1mk=; b=e1+D2H7mMhljPENaa9raw3Fvf48e5I/UMg8+PWWEijPp+EnBTBMZ0OlWkW/Rr5HXUm udWHTww9FBLHWmjeqVXIHXl+QpKNnAEqQ/mTJL5zRA5OGMbo32OeQbpwlkjvLFPI5snR 3qZts2mzmL2t8cbNumAg5nLLx9hnq1AJoT8Z8oS92Fjb85RTjCPA3m5kCG5n8Gm3XoSR Erd/r7IpL5cTIniR9GUPbtZ/1YCJgyqqbZPI9WuyrkpQfiDdF2dBJYosIEAnOPJwlWqZ VYLfZ5ZMT2L8nlW3YDIlC7/5HJFxobaDkLI7I+++4zjj3/CoTfr2me9au7PwospURr7U wJOA== 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=yIeYnStlqIX5rrPTgambgzw4xyiTftg4pwWt5xbI1mk=; b=0Yu3Q31orXAI2grERG8TUZKR990c5IU3m2x25EBwMm+Bg2k/hKSSkamGe+ntEjUWML mCpMgUzl90I8uBYeCwR9JcSnMTEphevm0QFjW++z3N87zW8KwArylI4T5xth7lbDmsu4 GELzm2Ik3GhQN2PQ1F+yId0XQuxrtHEE1CInftmOTlvk6OXX2aRveWn5sQhNtm6w94eN KjDXW6REAS8MZA5XfxP0vO9V9EDIuYvfTTNnwSfXZ8L4x2wKJrZgOqyKygCg9PiImy2O zSyug+Ne+I+Z0cFqYy65Iixy0ySQNl6IjQQbuXpybqq/gkWWW/Dm7ZOgSWio2vsLIo5n Y3VQ== X-Gm-Message-State: AFqh2kqPHrv21Xj4SgEblVg1F9LlJGenNzcM89M6hY2rVn9ykJ/tCjfV HZggZ988mJZ32cgbYGCDDqGhSnr1C+1KbvxjaDyyrWE2LNHCwA== X-Google-Smtp-Source: AMrXdXt+DTTUBCaFvE0k5QLpPQCKIYswkb6MC68zda8bKaoz1Mf7nC31w23BgIZGWf78s1Ub5pjaaVPr6AniFkIFzsI= X-Received: by 2002:a05:6870:ee1b:b0:143:ffca:30c8 with SMTP id ga27-20020a056870ee1b00b00143ffca30c8mr929264oab.280.1671359976784; Sun, 18 Dec 2022 02:39:36 -0800 (PST) In-Reply-To: <83zgblf84a.fsf@gnu.org> Received-SPF: pass client-ip=2001:4860:4864:20::2e; envelope-from=paaguti@gmail.com; helo=mail-oa1-x2e.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:301605 Archived-At: --000000000000b547be05f017d1a1 Content-Type: text/plain; charset="UTF-8" Hi Eli, thanks a lot for confirming :-) I'm keeping them in treesit-extra-load-path for my experiments and will follow whatever comes out of this experiment in the sense of 1) hopefully seeing the parser compilation integrated in the general compilation process 2) same for packaging. BTW, your answer may be good for a FAQ ;-) Thanks again, /PA On Sun, 18 Dec 2022 at 09:07, Eli Zaretskii wrote: > > From: Pedro Andres Aranda Gutierrez > > Date: Sun, 18 Dec 2022 07:32:50 +0100 > > > > 1.- where will they sit at the end of the day? > > It is IMO best to put them in the same place where you have the rest > of the shared libraries loaded by Emacs. There's also the special > path treesit-extra-load-path, but my recommendation is to use that > only if you cannot place the grammar libraries together with the rest > of your shared libraries. > > > 2.- should I include *all* plug-ins or just the plug-ins I use (mainly > Python to get used to it) > > Each grammar library is only loaded when the corresponding Emacs mode > is activated. So if you never turn on some treesit-based mode, you > don't need to have the corresponding grammar library available. > -- 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 --000000000000b547be05f017d1a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

thanks a lot f= or confirming :-)

I'm keeping them in treesit-= extra-load-path for my experiments and will follow whatever comes out of th= is experiment in the sense of=C2=A0
1) hopefully seeing the parse= r compilation integrated in the general compilation process
2) sa= me for packaging.

BTW, your answer may be good for= a FAQ ;-)

Thanks again, /PA

=
On Sun, 18= Dec 2022 at 09:07, Eli Zaretskii <eliz@= gnu.org> wrote:
> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Sun, 18 Dec 2022 07:32:50 +0100
>
> 1.- where will they sit at the end of the day?

It is IMO best to put them in the same place where you have the rest
of the shared libraries loaded by Emacs.=C2=A0 There's also the special=
path treesit-extra-load-path, but my recommendation is to use that
only if you cannot place the grammar libraries together with the rest
of your shared libraries.

> 2.- should I include *all* plug-ins or just the plug-ins I use (mainly= Python to get used to it)

Each grammar library is only loaded when the corresponding Emacs mode
is activated.=C2=A0 So if you never turn on some treesit-based mode, you don't need to have the corresponding grammar library available.


--
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

--000000000000b547be05f017d1a1--