From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Simen_Heggest=C3=B8yl?= Newsgroups: gmane.emacs.devel Subject: Re: Mode names for C-like tree-sitter modes Date: Mon, 14 Nov 2022 11:17:53 +0100 Message-ID: <87sfil96we.fsf@runbox.com> References: <3C23FEAC-6550-48BE-91A3-443B44717C40@gmail.com> <1E870C80-8435-4305-8FA1-A5A8FF681E2C@thornhill.no> <9B1731B7-3DF2-48E1-B18F-7E3FBE50B3DB@gmail.com> Mime-Version: 1.0 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="3604"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: Theodor Thornhill , emacs-devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 15 00:32:34 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 1ouiwK-0000ii-S5 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Nov 2022 00:32:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouipB-0001h3-R1; Mon, 14 Nov 2022 18:25:09 -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 1ouigA-0006BC-RU for emacs-devel@gnu.org; Mon, 14 Nov 2022 18:15:52 -0500 Original-Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouWXb-0006ck-6N for emacs-devel@gnu.org; Mon, 14 Nov 2022 05:18:14 -0500 Original-Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1ouWXS-00AhBX-RG; Mon, 14 Nov 2022 11:18:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=b8ECet1W3nMK6b+NC+sLf32NOQcGGqj8pFQkUdRJMm4=; b=FEls3OUGoM9obG/YN5XTdVTg/w 9bdD+WNKx44k5XhuOXcuU5HYftMd5XfO+RtDJqOSTLOv/8/DuBd95X6AfJBW9nDrzQDXCMcR+hZmZ NGIzMQRgsz5VxUwhJQHsV11Gf2JTI0Lc8w9o87Kq/JoHRD7NeITMmYbSzSbq8IhH+r9eytlljHqXb lhv/UsD6AwSzokAuXfPbfzyLLfLtYUvIezsiF23pDIJl6ReIPWWyFCqMu34MTHlgHl0mWzh7dtYRe h3SMh9Q1fnRcejWYMXPCjPy7Kb+83z7cl89M4sx6RvV1ricmIH5bMxyz/q4tp0EgJQEzU3IIgWkTd fdRE92hg==; Original-Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ouWXQ-0004Ve-0e; Mon, 14 Nov 2022 11:18:00 +0100 Original-Received: by submission02.runbox with esmtpsa [Authenticated ID (963757)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1ouWXK-0006OV-Bg; Mon, 14 Nov 2022 11:17:54 +0100 In-Reply-To: <9B1731B7-3DF2-48E1-B18F-7E3FBE50B3DB@gmail.com> (Yuan Fu's message of "Mon, 14 Nov 2022 01:09:58 -0800") Received-SPF: pass client-ip=2a0c:5a00:149::25; envelope-from=simenheg@runbox.com; helo=mailtransmit04.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:299770 Archived-At: Yuan Fu writes: >> On Nov 13, 2022, at 10:34 PM, Theodor Thornhill wrot= e: >>=20 >> That's fine with me. In any case I think we should remove >> tree-sitter support from js-json-mode (or merge them). I think there >> exist a json-mode in both elpa and melpa, adding another isn't the >> best idea I think. >>=20 >> Not sure what is best, really. > > Js-json-mode inherits from js-mode, which complicates the matter if > tree-sitter is enabled for js-mode=E2=80=A6 Probably should remove tree-s= itter > from js-json-mode. Also if we decided cc-mode and tree-sitter should > be mutually exclusive (which we kind of have), we should remove some > cc-mode init in js-mode that runs even when tree-sitter is enabled. > > The json-mode you mentioned is on ELPA, and is fairly small, we might > be able to merge json-ts-mode with it. Simen, WDYT? Sounds good to me! The json-mode in GNU ELPA is SMIE based and pretty basic like you say, though it has got some goodies like pretty printing and JSON path display that I think would be good to keep. -- Simen