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 09:48:09 -0700 Message-ID: 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> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14069"; 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 Fri Apr 01 18:49:54 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 1naKTA-0003PJ-IE for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Apr 2022 18:49:52 +0200 Original-Received: from localhost ([::1]:59504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naKT9-0006j3-HX for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Apr 2022 12:49:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naKRa-0004MA-K5 for emacs-devel@gnu.org; Fri, 01 Apr 2022 12:48:14 -0400 Original-Received: from [2607:f8b0:4864:20::52e] (port=44729 helo=mail-pg1-x52e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naKRZ-0005cw-31; Fri, 01 Apr 2022 12:48:14 -0400 Original-Received: by mail-pg1-x52e.google.com with SMTP id c11so2806387pgu.11; Fri, 01 Apr 2022 09:48:11 -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=ot4eKqpcWKeJviZzRquL4A9zPW/d8YA9yLchFF5P+Fc=; b=QQrquRiQ1kVP+XsOPJxcczJ6WLNvCXVdWRbwOJZQe6e2oS+WQr9RSX6lRAgQB6X56n PuxWLAh5eRTICX6lW64o+LkEt4cEW70Ukc7DPNJOnS5YTtDVUmANyRmsfgMi9n0yUXit IacTvgtfOrT+UiKmf/F82j5p0xViNNnHaDE5rnE9FQP7NsUPHKWG/i0VcTsNDnt/L3/R HzSBQ0Tsu1jtEysVPbMNCx9q1+qO81MJ8UO4Xc/+gqGnVH0bn++A5f7xJr8lFf+nBDal iwC1/fMbQWp77y+YEAlR/wYt92U5ApPS0f0F6qnZlvFyMiZQvv2Yey5KVBUbJbRfoX/2 AqTw== 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=ot4eKqpcWKeJviZzRquL4A9zPW/d8YA9yLchFF5P+Fc=; b=lBYkipxU/b9whIr0mEyLxQD0EhSh8Af6m4FXNaI4+Fy16VMKYKqAoZJ6G/SZNp7Doy tZJB0ZK+QP5rXaxTej8j5GEJ7EzzKWWFFucq0bgajP3Qeq63u3yl7rW+Vsp3NflzPCGP Xi5IDvAVD/CNHUb3qUIxlF8k0tw0T9NGlY1JwnTFMloxw05CVKjV4J5c401LNlWjp+EP FJzHeXEMRyE+QduBdj90f0iStIWyceBndPjNk8hT0rFXEpELMRq6qqMoETd3SgT0JXkq 7NrU5XK2+q7Sj6R9rXWV/Qv2WHnz2qdoDZIswMqj2aW32zLAPKOlB99opaEOrPb46KIj q7Jw== X-Gm-Message-State: AOAM5305Q4pM/ovkwO17VaoQERE2SJbwwe5LlnnJvWq6wsDlnz+uNaud eyKAzkaNOjWnuB13Hifve5dgewdmElQwnA== X-Google-Smtp-Source: ABdhPJzft9Y9hokO6k9CdU1R40QAr9l0ZIEcMJ65jyjbPyhsdWk1I6t3wy5/eHt9AUHm6ZbZpW8bWg== X-Received: by 2002:a63:a51:0:b0:378:dd95:a341 with SMTP id z17-20020a630a51000000b00378dd95a341mr15507931pgk.615.1648831690784; Fri, 01 Apr 2022 09:48:10 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:8c3e:43a1:5fa3:7737]) by smtp.gmail.com with ESMTPSA id d11-20020a056a00198b00b004fa7da68465sm3677069pfl.60.2022.04.01.09.48.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2022 09:48:10 -0700 (PDT) In-Reply-To: <83r16h5npi.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::52e (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=casouri@gmail.com; helo=mail-pg1-x52e.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:287679 Archived-At: > On Mar 31, 2022, at 11:20 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 31 Mar 2022 16:00:28 -0700 >> Cc: Lars Ingebrigtsen , >> yoavm448@gmail.com, >> emacs-devel@gnu.org, >> ubolonton@gmail.com >>=20 >>>=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? 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?) Yuan