From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Elliott Shugerman Newsgroups: gmane.emacs.devel Subject: Re: Rename Tree-sitter major modes from "ts" to "treesit" (was Re: tree-sitter version?) Date: Fri, 25 Nov 2022 10:50:40 -0700 Message-ID: References: <70973BD9-26D2-4833-A429-8434FC03026B@gmail.com> <87cz9cevns.fsf@gnu.org> <8B97AC7B-54CF-41AC-9EF7-0A83F1709B98@gmail.com> <25472.55895.937365.654317@retriever.mtv.corp.google.com> <1DE461FE-EE92-4593-8191-0738D5B6640C@thornhill.no> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009bc72005ee4f2985" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3314"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 18:51:42 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 1oycrW-0000co-33 for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 18:51:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oycqn-0005sq-7j; Fri, 25 Nov 2022 12:50:57 -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 1oycqk-0005sc-Mz for emacs-devel@gnu.org; Fri, 25 Nov 2022 12:50:54 -0500 Original-Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oycqj-00012z-2s for emacs-devel@gnu.org; Fri, 25 Nov 2022 12:50:54 -0500 Original-Received: by mail-vs1-xe36.google.com with SMTP id l190so4820006vsc.10 for ; Fri, 25 Nov 2022 09:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Lf+g76NPIIxVoe6BcQAKl+T1gEIUbdp8//vZpIyV/R4=; b=FEZauIO/KV9Gf23sEyKaBNoIB2Bu2iSyNlz/esOOMYOhQ+IzQ1Z9NtZbNgHAw0R/uC k931Yre5SjPkKq/c8fp2X4eFqYVhrfRA4FmaZ4IXe6Pav7w276mmWSW+fYaufl5KV9wP tei2Gy+qLqxJrOJHrGzJ6agJ1KFDxmKxVEDB3/2fuMOqiWauKq44tWB6fFMYj25VEo1G rREc4i8gElJlBc6pE02SjOALFCSWButVbDTXkLQr6Ki2CAiUjDuxLcRIfojqyvtQze6P pn+qUMKzHH7Jz+ouj6ncRtyhEBXIu0RE4SFfBgsoB4N8W2FLWjzj0fWoY0ObfGEm25Ob DUHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Lf+g76NPIIxVoe6BcQAKl+T1gEIUbdp8//vZpIyV/R4=; b=EILud4pGHd4RwDx8yG7dz+K54SZ+RbB7V7ZRWNixfs5JDCw5RcKbEBGt6WCM4M4zTZ xfaaLhbRGsynxhzZy03gcbtapUD/Ue8kPqNx3ayTdHbTdBqaHjOjbp1fNpKms1ZOabZd b/0/ZGxHsPpoyxfF6TA5VoTj4RgPbqcfGsZw9tQ4aAMFaMadc8n/KJNclhhqU54G+bWT YcWVaD1HD6khlRKN4SizEtBsBeum58BLYHSYWyrySavnioU+6KWEMMWRdbkHW3WqYsjF wyO3sdXrPwB3cXCWfFa+33okcJAwmdmxJAPvI8TfOywSvv4tTcLtU6R6qznL7dm8du4a KFPA== X-Gm-Message-State: ANoB5pnwwuD0aWjgkJbpJfoFs+apLSf1A1vVjsuAeTj39rJQGOLoyNaQ +/nTjFaYsELEd0cB5MQY8/M47F5FntWWAnafEGVsESKh X-Google-Smtp-Source: AA0mqf4a/C72+AlaKncRLlIn6Bs6o2g9gWg26dP3UAnq1WHBW4g9bWHZMwUVVrgtCAVdk9E+8vtfpfubGg+hGMANm+M= X-Received: by 2002:a05:6102:103:b0:3aa:5ef7:bc48 with SMTP id z3-20020a056102010300b003aa5ef7bc48mr12692270vsq.12.1669398651454; Fri, 25 Nov 2022 09:50:51 -0800 (PST) In-Reply-To: <1DE461FE-EE92-4593-8191-0738D5B6640C@thornhill.no> Received-SPF: pass client-ip=2607:f8b0:4864:20::e36; envelope-from=eeshugerman@gmail.com; helo=mail-vs1-xe36.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, HTML_MESSAGE=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:300505 Archived-At: --0000000000009bc72005ee4f2985 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am nobody, but FWIW, I'm in favor of using "treesit" instead of "ts" in the mode names. Even if tree sitter had a higher profile than typescript (NB: typescript's is in fact much higher, and this is unlikely to change no matter how much adoption tree sitter sees), the unambiguous naming scheme is preferable. Does anyone really mind the five additional characters? On Fri, Nov 25, 2022, 9:39 AM Theodor Thornhill wrote: > > > On 25 November 2022 17:25:09 CET, "Daniel Mart=C3=ADn" > wrote: > >"T.V Raman" writes: > > > >> also the name "ts" as part of tree-sitter is an unfortunate > >> confusion since ts-mode is for typescript. > >> > >> I initally wrongly assumed that ts-mode was some kind of global mode > >> that would enable tree-support for all supported modes, given the > >> names c-ts-mode etc. > > > >This is a good point. The Tree-sitter Elisp library itself and its > >commands already use the "treesit" abbreviation consistently. We're > >still on time to rename the new language modes to c-treesit-mode, and so > >on. Thoughts? > > > > I'd rather change ts-mode to typescript-mode or typescript-ts-mode. But w= e > can discuss names, of course :-) > > Even better would be some construct we've discussed many times the last > months: not letting a specific implementation "own" a major mode name. So > c-mode could be powered by cc mode implementation _or_ treesit.el > implementation, but not a merged thing. > > To me the natural progression would be to keep name as-is, then later whe= n > we have such a construct just delete the *-ts-modes. > > For Emacs 30 or 31. > > Theo > > --0000000000009bc72005ee4f2985 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am nobody, but FWIW, I'm in favor= of using "treesit" instead of "ts" in the mode names. = Even if tree sitter had a higher profile than typescript (NB: typescript= 9;s is in fact much higher, and this is unlikely to change no matter how mu= ch adoption tree sitter sees), the unambiguous naming scheme is preferable.= Does anyone really mind the five additional characters?=C2=A0

On Fri, Nov 25, 2022, 9:39 AM Theodor Thornhill <theo@thornhil= l.no> wrote:


On 25 November 2022 17:25:09 CET, "Daniel Mart=C3=ADn" <mardani29@yahoo.es> wrote:
>"T.V Raman" <raman@google.com> writes:
>
>> also the=C2=A0 =C2=A0name "ts" as part of tree-sitter is= an unfortunate
>> confusion since ts-mode is for typescript.
>>
>> I initally wrongly assumed that ts-mode was some kind of global mo= de
>> that would enable tree-support for all supported modes, given the<= br> >> names c-ts-mode etc.
>
>This is a good point.=C2=A0 The Tree-sitter Elisp library itself and it= s
>commands already use the "treesit" abbreviation consistently.= =C2=A0 We're
>still on time to rename the new language modes to c-treesit-mode, and s= o
>on.=C2=A0 Thoughts?
>

I'd rather change ts-mode to typescript-mode or typescript-ts-mode. But= we can discuss names, of course :-)

Even better would be some construct we've discussed many times the last= months: not letting a specific implementation "own" a major mode= name. So c-mode could be powered by cc mode implementation _or_ treesit.el= implementation, but not a merged thing.

To me the natural progression would be to keep name as-is, then later when = we have such a construct just delete the *-ts-modes.

For Emacs 30 or 31.

Theo

--0000000000009bc72005ee4f2985--