From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Naming conventions for major modes based on tree-sitter Date: Mon, 26 Jun 2023 14:50:22 +0300 Message-ID: <83352exx1d.fsf@gnu.org> References: <877crqaddq.fsf@srxl.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9295"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 26 13:50:35 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qDkjr-0002FI-7i for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 26 Jun 2023 13:50:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDkjL-0001ec-Ni; Mon, 26 Jun 2023 07:50:03 -0400 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 1qDkjK-0001dA-07 for help-gnu-emacs@gnu.org; Mon, 26 Jun 2023 07:50:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDkjJ-0001Vr-KN for help-gnu-emacs@gnu.org; Mon, 26 Jun 2023 07:50:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TA4KlBe0WzbiYUEFtSH9CEqWpKd5HI3UGGKP5z+QGvA=; b=nKvAEuaio7+V A8xed/stfz5de1pnhgH2DEmChNAUZizeijNNvPVXNuWPfZ8O4247pfkrshobDkjIWmPUcnOxfssxN Imi2I3esazLe3Gri38JrdxV8J4H7iMY1P7sjmI2hP0wzxaCqC04gKTkew5AXZF2HNPq9BmUIp00xJ LEptm+prF5EIHAr63SzpSP3ww5CebmU9UY3zJjBSriOKAQZ+BzAg1dJANNuqA3SxiYcpF1zLa31dw xWqrx/aqQeNQNs72FQW3iBmRkTs2E2Tmsp03audHFuzzM9+E6VyehCL0JRsZRzO+XPTtBc/GCQ/Oy aF80sp+xpX5FRMv864HZLQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDkjJ-0002hf-3S for help-gnu-emacs@gnu.org; Mon, 26 Jun 2023 07:50:01 -0400 In-Reply-To: <877crqaddq.fsf@srxl.me> (message from Ruby Iris Juric on Mon, 26 Jun 2023 17:13:11 +1000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144044 Archived-At: > From: Ruby Iris Juric > Date: Mon, 26 Jun 2023 17:13:11 +1000 > > I'm currently developing a major mode based on treesit.el. It seems like > all major modes included in Emacs include the "ts" signifier in their > name - is this a convention that all treesit.el-based modes should use, > or is this only being done to prevent conflicts with existing modes in > Emacs? I ask since there isn't an existing major mode for this language > yet, so I'm not sure whether it's good practice for me to include "ts" > in the mode name. IMO, it is better to have "-ts-" in the mode's name, so that both users and developers have an indication that the mode needs tree-sitter.