From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Fri, 1 Apr 2022 23:26:25 -0700 Message-ID: <983C9314-B31C-4785-B075-892CDD883DA2@gmail.com> References: <9C5A86D6-0E7D-4DDF-B211-278EF9AC7E01@gmail.com> <87a6gq5mxl.fsf@gmail.com> <877dbu5mgj.fsf@gmail.com> <0BB906F7-BD3A-41CC-9783-19AA16934497@gmail.com> <83pmplq9f3.fsf@gnu.org> <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> <83ilvbpsvl.fsf@gnu.org> <4A6F417A-EF74-40B6-9517-6C0947AB87A6@gmail.com> <83wnjmiork.fsf@gnu.org> <6D1CD758-2C6F-4843-9739-F2A5D5591648@gmail.com> <67183EAB-5D98-4211-B71B-4618D6266A15@gmail.com> <83lews90ft.fsf@gnu.org> <8D3019A6-83EE-42AB-ADFA-7DA6EBB179B3@gmail.com> <83r16h5npi.fsf@gnu.org> <83v8vs4rd9.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) 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="4843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Yoav Marco , ubolonton@gmail.com, Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 02 08:28: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 1naXFK-00015G-Ng for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Apr 2022 08:28:26 +0200 Original-Received: from localhost ([::1]:45840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naXFI-0006Si-R6 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Apr 2022 02:28:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naXDS-0005bG-TO for emacs-devel@gnu.org; Sat, 02 Apr 2022 02:26:30 -0400 Original-Received: from [2607:f8b0:4864:20::1030] (port=37700 helo=mail-pj1-x1030.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naXDR-0006vg-CR; Sat, 02 Apr 2022 02:26:30 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id g9-20020a17090ace8900b001c7cce3c0aeso7047699pju.2; Fri, 01 Apr 2022 23:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9uCocRN3jNaEPifikQjRetdrgk72lMMmQskPmgPmPXk=; b=hLvj8QZVCfbh5V4MLVPafy8zPPGIcffNXg6pTd8u+YtdwlO6o2+L6NpMHDcroiFcZq AEJdLNJdVV3126txLEQvsYZxsmdtPB4bDi+J29jnW8VB0ucapEQdWGXmeQAiDdIMnVVL ob42T1NFRFVwsIOQc5MXXrhkMOC1XAdATw3PX7NGCIvdDL5OKhRa4I6Pn5Gz33LH/C9B bjOoj0k7e2cRLPZ402oXBaTwWmArgJGMdnztvdnw7A0nB9hEgQPupXXj92KwQX6ctXep IQXe+u3njAdDwCKiDWZbJNn7W/IdLeCPOtUHtxiLbtX+c2WvhRHF/rRO8RqJKaIHqu4y bKOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9uCocRN3jNaEPifikQjRetdrgk72lMMmQskPmgPmPXk=; b=eDmKssMH80MC9SkayTgLDR02JvsncmEU4zU/wccR6tNm7ZSgRjpcWdWaE1GdZhX6v9 MJec6z3mv8D9Ceb2yfle5f0INgX7nxqs7BDValG/ZYmAxfH8rb7bPiaZZ+oaEckzT4Fo 3i6s6GfOaAycMHUUSzx6yM/A//NxprmLahxFLZPJK9ntrfPHzPLp6icIWZIR+UwiAPI5 4SZlIXb9dXMm1KKYI9qpJ+/rlX3TbMVtVz/SwpeuZGWSer/AfA1wFzaHQ+3c3SxDDfR9 LYQ7IGioDXsTtmnK9kS/CbvWMeSNhVlR/Wq1u9zM2xh1JQKdoi1lzC2lJYw0oomt9+J7 /WwA== X-Gm-Message-State: AOAM530blGuIoOWVA/C+uyYVSDeauKErTrwHr6mplyb/waC/6Y1SDqjS lLe7xmomUPBYZKd8VKzyBqGBHUR5VKQfqA== X-Google-Smtp-Source: ABdhPJxZgylypC/fcrW//bEfwqZuTTmeM41+peCj/3Gh4uczWX98JYo4yv7liAWmazVl/cCy19/MEg== X-Received: by 2002:a17:90a:9ab:b0:1c6:34bd:3d96 with SMTP id 40-20020a17090a09ab00b001c634bd3d96mr15592917pjo.25.1648880787410; Fri, 01 Apr 2022 23:26:27 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:8c3e:43a1:5fa3:7737]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a174800b001c7d8b160f0sm4209250pjm.51.2022.04.01.23.26.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2022 23:26:27 -0700 (PDT) In-Reply-To: <83v8vs4rd9.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1030 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=casouri@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 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, FREEMAIL_REPLY=1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" Xref: news.gmane.io gmane.emacs.devel:287695 Archived-At: > On Apr 1, 2022, at 10:59 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Fri, 1 Apr 2022 09:48:09 -0700 >> Cc: Lars Ingebrigtsen , >> Yoav Marco , >> Emacs developers , >> ubolonton@gmail.com >>=20 >>>>> If so, I think we should have our own load-path for these >>>>> libraries; relying on the standard LD_LIBRARY_PATH etc. is not = good >>>>> enough (although we should support that as well). I envision that = at >>>>> least in some cases users will not want to have these libraries in = the >>>>> public places, or maybe even won't have the requisite access = rights to >>>>> do so. We should provide Emacs-style alternatives, like some >>>>> subdirectory of ~/.emacs.d/ and/or under ${prefix}/lib/ (similar = to >>>>> *.eln files). >>>>=20 >>>> Anyone have thoughts on this? >>>=20 >>> What kind of thoughts? Whether or not to provide this feature (I >>> think we should), or how best to implement that? Or something else? >>=20 >> Thoughts on what paths should we use, whether we want to allow for = custom load-paths (I think we should), and if so, the name for the load = path variable ({tree-sitter/treesit/...}-language-definition-load-path?) >=20 > I thought I answered all those questions, with the single exception of > the name of the path variable. Ah, I thought you are inviting for suggestions. I=E2=80=99ll use = ~/.emacs.d/tree-sitter and ${prefix}/lib and use = ${tree-sitter-prefix}-load-path, if there=E2=80=99s no further = suggestions. The treesit prefix seems to receive most votes (including mine), so if = no further objections I=E2=80=99ll change tree-sitter to treesit. Yuan