From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Sat, 17 Dec 2022 15:06:59 +1100 Message-ID: <868rj6vfep.fsf@gmail.com> References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> <831qozjob7.fsf@gnu.org> <87cz8jxoat.fsf@ledu-giraud.fr> <83wn6ri7pn.fsf@gnu.org> <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31580"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.7; emacs 29.0.60 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 17 05:11:26 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 1p6OXm-00082b-0D for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Dec 2022 05:11:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6OX8-0000G4-G4; Fri, 16 Dec 2022 23:10:46 -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 1p6OX7-0000Fr-On for emacs-devel@gnu.org; Fri, 16 Dec 2022 23:10:45 -0500 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6OX6-0001oy-6G for emacs-devel@gnu.org; Fri, 16 Dec 2022 23:10:45 -0500 Original-Received: by mail-pl1-x631.google.com with SMTP id l10so4143005plb.8 for ; Fri, 16 Dec 2022 20:10:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=Cp/BN3kphPUHg6tRwe4ZsrR7bKlG1AoiB0PIHynPjvs=; b=PmHUWIixqJ6DeaHYiTH3fmaYQ0GnsfjUtJwmNmLVGt36EPvGIybTsniahRaBkEuZuA O9SaeHNz0G0XX8sH9qXbD4PDCxzJvaL9Rw882UprBgI+vEbC846gfzdLbBw2v3nlgArP Q7dWq68E6RIS8GdAr3BDKAnKMU7dud/PpYEX3lfktIuV58Y/XemvNoW6NjXf9L44tjfv C88wKRne9DD8dA0k+aNCutxm9SMdvLatR3ZCNcVmz7T7jvk24KNwjSi03clJ0Z3qOJ/z gSPXIFBEhUdjJEKpsH5NSbkO8UU/ttvIgMolL2yOdR2IhX0ulcJoXtc3Vd14tBnJ713X NXww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cp/BN3kphPUHg6tRwe4ZsrR7bKlG1AoiB0PIHynPjvs=; b=5CM/cWnY2rHRcGrGh9zW73288OFQ4fT6zDCJBxGH7vEcmPhyFPA3vsM4ghzzavlNtZ W17fMG+uPDyM37kOki1Cpaquu2qaB9Fjl1p9fAsnnvWW+T4Eae2PwnDq8IYtHTIDp3bs ECMrI8Rbly15/8huG0fBSO5APPUftamg819VBrTVHGk8i+S0qAfjfi4G5oq1wMA1JwsF 4shXC+r+2xPatIdxjB6faZetHjfJqrqbu0WXoxsl8aBsgX4LHpPHyPrGjQJNV1gnNkdy E10cfzL16VVJMFZsRlQRzgb0J6iDXJbbh9sNP/R7dHYxeW8+E8p4nGVGWGBxfXNwDBGl Zg3w== X-Gm-Message-State: ANoB5pk8VxlAVRF0j+il7uvMAdEewh8i9n51yIiiFtCQFOnZBgGmjZcC Uel6wq9ycV7uHlLewU2o+lwuu98RUh8= X-Google-Smtp-Source: AA0mqf6DShcBl7NSSinwILmEpvwBNL2PYvmt/iTKza48KoO3pG3CzwNSS2yn4Yd78MANr2FhuZJZNQ== X-Received: by 2002:a17:902:c206:b0:18f:6b2b:e88d with SMTP id 6-20020a170902c20600b0018f6b2be88dmr27944840pll.36.1671250242419; Fri, 16 Dec 2022 20:10:42 -0800 (PST) Original-Received: from dingbat (203-173-24-107.dyn.iinet.net.au. [203.173.24.107]) by smtp.gmail.com with ESMTPSA id jf14-20020a170903268e00b00189a50d2a3esm2364707plb.241.2022.12.16.20.10.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 20:10:41 -0800 (PST) In-reply-to: <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x631.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, 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:301541 Archived-At: Ken Brown writes: > On 12/16/2022 12:23 PM, Eli Zaretskii wrote: >>> From: Manuel Giraud >>> Ok but with tree-sitter, it feels like there is two level of >>> third-party: >>> - the tree-sitter library >>> - the =C2=ABlanguage specicic part=C2=BB library >>> >>> The former seems to be easily available in distro's packages (as is >>> librsvg, libcairo, etc.) but the latter does not seem to be as >>> accessible. I hope it will change with time and adoption of tree-sitter >>> otherwise tree-sitter usage (at least in emacs) will end up being >>> =C2=ABexpert=C2=BB matter. >> I think it indeed will change very soon, as soon as the distros >> realize that Emacs 29 needs that to be able to use the -ts- modes. > > I wonder how well known this is among distro Emacs maintainers. I did a = quick internet > search and didn't find any indication that any distros have done it yet. = Can anyone point > me to an example? > > Ken >From what I've been able to find out, some distributions have the tree sitter libraries as packages, but none have the grammar definition libs yet. Given the lag for some distros in adding new packages, it will likely be at least 12 month lag before distros will have packaged versions of language definition libs. For distros with LTS releases, it could mean 2 or 3 years before users see them in their package repos. Distributions with a rolling release model, like Arch, will likely see the language definition libs as packages much sooner than the other distros.