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: Tue, 29 Mar 2022 17:51:54 -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> <32CE637B-B9A6-4E1A-A6C5-B6A930D34299@gmail.com> 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="33848"; 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 Wed Mar 30 02:53:06 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 1nZMa9-0008dA-Ie for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Mar 2022 02:53:05 +0200 Original-Received: from localhost ([::1]:40890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZMa8-0007dG-27 for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Mar 2022 20:53:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZMZ4-0006wY-Nh for emacs-devel@gnu.org; Tue, 29 Mar 2022 20:51:58 -0400 Original-Received: from [2607:f8b0:4864:20::102a] (port=46892 helo=mail-pj1-x102a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZMZ3-0003zO-AI; Tue, 29 Mar 2022 20:51:58 -0400 Original-Received: by mail-pj1-x102a.google.com with SMTP id bx24-20020a17090af49800b001c6872a9e4eso4610255pjb.5; Tue, 29 Mar 2022 17:51:56 -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=ZOFAQCX6joQEkdv6KUOFsRPfOhTGTBM61RMRSlKbBJ4=; b=EG82rFwzIdw/nuMEv+d2VmokQK0YvU+Uh6Y8JZ4h0KHX23g+bEzM9SCoFmk9zhp02f J4aAa77T1nd3+KhKwRVmzFYtTb/07G0ABFGE0kXRbKGrrdyNW99H8HJ/7ljHXRzzauPy uzq4QB2wLayoqzDAPI/JN3jvNFU4eMYNeJD5e32rOleS1OX6pYDLlToRCUmhp6MKSeRk pXvkqTaDljTmak8vKbwENNyJjHPn4PQHsp72aICfZ/lCsyJ6YELIr/8f1TKYgUvMnJPu 2p3NjMoUJXeVe8SelZvrtQ3HNFZzcd4t1nFhHEow+pOt6Um8mN2qtLnn+9n/hhJ31UXt JlTw== 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=ZOFAQCX6joQEkdv6KUOFsRPfOhTGTBM61RMRSlKbBJ4=; b=eprn4lYKHBuKswYL42sbsnX9wRuSOpqfRpcVMOsqUHhTFXOVAymbvfCK4Knq+MSM/W c7NDlaMD/Er2gfMSjewd6GdqsKdr7cFxtljLm3BPudbngSWcchTUMp8PAsgsDbZ8oxJx 9ygJiCxMzxu0bb1RpwqA0dJSmaWWIH1gmXGo+JlDsKgN6kHdg7KDzExUMm5UWs26p3/9 NNq5wNqt2RYF56Kk/6iaHT0zzDCZQU5XE9IMFCvfpM2T2RMlBxu8Af+Ya3XZ5qZMQb8m FwohM1yM2XCeArReJatkERmgsCzhKjmjtCu30j1p+1Xpuz49m9yApFgCPACGARvw8Ti1 Dtyw== X-Gm-Message-State: AOAM532zQM0TPa1fdp3nCOhEn9z02Dp0vsLLyk7qECFM4Grxwp4W49vt pAUen7iQTG2F9WFL1m0wC0xWeohjTbP8Qg== X-Google-Smtp-Source: ABdhPJwOwWvL1hsduxd1G5pFZ9reK2t30uK7VgR+0LhlZfWJWHNi0dcCo1jst26F8yO5YHomWwvEOg== X-Received: by 2002:a17:902:ecca:b0:154:5393:aa81 with SMTP id a10-20020a170902ecca00b001545393aa81mr32739866plh.148.1648601515339; Tue, 29 Mar 2022 17:51:55 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:a837:d5f7:9339:94dc]) by smtp.gmail.com with ESMTPSA id r4-20020a638f44000000b0038105776895sm16829865pgn.76.2022.03.29.17.51.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2022 17:51:55 -0700 (PDT) In-Reply-To: <32CE637B-B9A6-4E1A-A6C5-B6A930D34299@gmail.com> X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=casouri@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, 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:287575 Archived-At: > On Mar 29, 2022, at 5:49 PM, Yuan Fu wrote: >=20 >>=20 >> Thanks. I skimmed this, and it looks in sufficiently good shape. Do >> you consider this feature-complete enough to make one more step >> towards merging it? If so, I'd like first to have this on a feature >> branch in our repository, so that people could build it and try it. >> Then we could land it on master after some time. >=20 > Yes. I can do that once we figure out the namespace and new load path. >=20 >>=20 >> One thing that we should consider right now is the name-space. You >> used tree-sitter-* names for all the symbols, and I'm asking whether >> we don't want something shorter, like ts-*. This is a decision we >> must make now, because once we start using the code, there will be no >> way back. Lars, WDYT? >=20 > As Po said, there is a package already using the ts prefix and that = package is popular enough. Maybe tsr? Anyway, I=E2=80=99d love a shorter = prefix other than tree-sitter, it is a real pain to type this long = prefix. I should clarify that I meant maybe we can use tsr as the prefix for = tree-sitter functions. The package I mentioned that uses ts prefix is = ts.el, a timestamp library on MELPA. Yuan=