From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Wed, 30 Mar 2022 18:19:43 +1300 Message-ID: <007303355a574f6fd20dd57b5791df1b@webmail.orcon.net.nz> 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> <87a6d8yype.fsf@yahoo.com> <6097E0D9-0AF2-43D3-AA5F-A8424A161B02@gmail.com> <87wngcxg66.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: ubolonton@gmail.com, Emacs developers , Po Lu , Eli Zaretskii , Yoav Marco , Lars Ingebrigtsen To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 30 07:21:53 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 1nZQmF-0002q3-Lx for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Mar 2022 07:21:51 +0200 Original-Received: from localhost ([::1]:51284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZQmE-0000Fc-D0 for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Mar 2022 01:21:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZQkS-0007Qq-H3 for emacs-devel@gnu.org; Wed, 30 Mar 2022 01:20:00 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:38819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZQkN-0004I4-Tx; Wed, 30 Mar 2022 01:20:00 -0400 Original-Received: from [10.253.37.70] (port=16241 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nZQkB-0000Ux-BI; Wed, 30 Mar 2022 18:19:43 +1300 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 30 Mar 2022 18:19:43 +1300 In-Reply-To: X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.44; envelope-from=psainty@orcon.net.nz; helo=smtp-3.orcon.net.nz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:287588 Archived-At: On 2022-03-30 17:29, Yuan Fu wrote: > On Mar 29, 2022, at 8:39 PM, Po Lu wrote: >> But you can have the cake and eat it too, by making `ts' (or some >> other short prefix) a shorthand for `tree-sitter' in the files >> where you want to use it. > > That’s true. I have some worries like whether people know about this > feature and whether they will use it, but perhaps these aren’t real > problems. My recollection is that shorthands are not to be used in Emacs core. (I believe it was confirmed that they will be used only for certain pre-existing cases where renaming was not an option, and would not be allowed in core Emacs code.) tree-sitter- doesn't seem very long to me, and I'm not sure there's any acronym which replaces it suitably (it's a slightly weird name, after all). Developers can always define an abbrev "ts" to expand to "tree-sitter-" if they are typing it a great deal? -Phil