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.devel Subject: Re: New Package for NonGNU-ELPA: clojure-ts-mode Date: Sat, 12 Aug 2023 22:26:08 +0300 Message-ID: <83y1igcban.fsf@gnu.org> References: <87il9kksqz.fsf@dfreeman.email> <87a5uw9ivs.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20256"; mail-complaints-to="usenet@ciao.gmane.io" Cc: danny@dfreeman.email, emacs-devel@gnu.org, manuel.uberti@inventati.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 12 21:27:13 2023 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 1qUuGV-0004z7-UC for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Aug 2023 21:27:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUuFo-0000Kd-KD; Sat, 12 Aug 2023 15:26:28 -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 1qUuFe-0000HT-9V for emacs-devel@gnu.org; Sat, 12 Aug 2023 15:26:19 -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 1qUuFZ-0005Gd-P8; Sat, 12 Aug 2023 15:26:15 -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=FyvDwQLS0hTcPI4bNgNlA6eF6+tbd9jTnVqkjKRIL8w=; b=PB4kkvNt9tdC 0fjelo6z/gNN0vZexxM2QtFlUR7G5N3gvyykwtNlnoHBTZ3MB1+vasmwhiL2VYDpWR5egtx6FRehY dtRdlzQMbhYoU3kEw+OuewHRz+gt+hGQ9oKZSRYjz4+bc6zErjIDEgy/Pq7E9omByKr8D0ZQPVU5S 7YVIEQ8q+l6YWhApDZAWn8fJ9ZDeRTQaUCkO3IwlWP0NkNex5uw1NTa4om8BT9uUKRDQyaFe3nwDq IkBprg6n9KBQanJ5dfFlVtAwT9UolE/PrAZfkxGpbpsDLBiQOOk1/ixJ85U9JcTvW4g9az1F2Z89t NneWVaZrhboGYv8pTk/HqA==; In-Reply-To: <87a5uw9ivs.fsf@posteo.net> (message from Philip Kaludercic on Sat, 12 Aug 2023 19:10:31 +0000) 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:308629 Archived-At: > From: Philip Kaludercic > Cc: emacs-devel , Manuel Uberti > > Date: Sat, 12 Aug 2023 19:10:31 +0000 > > If added to GNU ELPA and NonGNU ELPA, this would be the first *-ts-mode > package, from what I see. From what I recall, the -ts-mode approach was > a compromise to add some basic support for Tree Sitter in Emacs 29, but > I am not sure if it was a final decision on the matter, because at least > from my perspective of following the tree sitter development from a > close distance, but also from user reports I have heard of since the > release of Emacs 29, the current approach is slightly confusing. Adding > a -ts-mode to ELPA might be misinterpreted as a commitment to the > current trajectory, and I am not sure if that is intended. If you mean that the *-ts-modes could be a minor mode, then I believe we found that to be unworkable, except in very rare cases where the major mode supporting the same language is very thin and has only a couple of simple mode-specific features. Otherwise, the very different way of doing font-lock, indentation, imenu, etc. means that basically all the features must be reimplemented anew, and in many cases make no sense at all. So a minor mode is not TRT here. The aspects of these modes that are not yet firmly decided are how to activate/deactivate them in a way that would be convenient and simple. But I don't think we will be removing the *-ts-modes as major modes, no.