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: Make all tree-sitter modes optional Date: Wed, 18 Jan 2023 05:34:52 +0200 Message-ID: <835yd43483.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <83h6wr6gmz.fsf@gnu.org> <831qnu64la.fsf@gnu.org> <83o7qy4l2v.fsf@gnu.org> <55d39dcb-de2f-fe02-e069-f1dd1e50e59b@yandex.ru> <83edru4jaj.fsf@gnu.org> <83sfg92ryn.fsf@gnu.org> <83pmbd2oy6.fsf@gnu.org> <0380a032-bca0-4225-6f9d-853de49f100f@yandex.ru> <83mt6h2ix7.fsf@gnu.org> <2c61c7c9-da8d-1073-5079-8391f77fefa7@yandex.ru> <83ilh52ha3.fsf@gnu.org> <83cz7d2g1u.fsf@gnu.org> <83bkmx2ef2.fsf@gnu.org> <837cxl2dc0.fsf@gnu.org> <8BA3366D-479D-4697-9DD6-7CF26C840EA9@gmail.com> <8e8cf3ba-0efd-6bdd-84ad-103b89a23f2e@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7279"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 18 04:35:31 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 1pHzEY-0001f9-QM for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Jan 2023 04:35:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHzDr-0001B4-56; Tue, 17 Jan 2023 22:34:47 -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 1pHzDo-0001Aa-By for emacs-devel@gnu.org; Tue, 17 Jan 2023 22:34:44 -0500 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 1pHzDl-0005VT-Sj; Tue, 17 Jan 2023 22:34:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=laPMVOh/0VIfVme5sZKgcDs/UTqK0w9ga2nsWTpfWJU=; b=ALYhqP7HLzRIthFpX8wh iZWds0sVVdXGeqI+/G2tPthbCRPKG8+L9PXSdKiPws6SS1N+fTyyw3biaUd84/UWYzX5OmUBDM61i +tMVv1L2+OL9/ArkdafaNxGr0Z8Ucj71Vc9N11YryZRJVL7cY1CqIkxRrTFiA5ZhOh9zetCOMYdK0 eXbq/wFJlakOyasPRmINEGsebfwJodonPsbmj3/iRRPqmnCYOejBmEccpSrHG1eOHibPujIcDbBol vytBLgPHbJQ09Z+EsnN0edcbMB6bt2K6tKqoYN9W6N1k7oB0+QUw1ds/ZJgRcYZQdb+7MQe6HiUcc thmnbKgLaX9jWw==; 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 1pHzDk-0005Xb-SP; Tue, 17 Jan 2023 22:34:41 -0500 In-Reply-To: <8e8cf3ba-0efd-6bdd-84ad-103b89a23f2e@yandex.ru> (message from Dmitry Gutov on Wed, 18 Jan 2023 03:23:57 +0200) 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:302505 Archived-At: > Date: Wed, 18 Jan 2023 03:23:57 +0200 > Cc: Eli Zaretskii , monnier@iro.umontreal.ca, larsi@gnus.org, > theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org > From: Dmitry Gutov > > On 18/01/2023 03:11, Yuan Fu wrote: > >> The userbase I'm familiar with has been messing with auto-mode-alist for decades. To make it easier, people have been adding the necessary lines to documentation: either to the repository's README, or to package's Commentary. So the user could take it from there. > >> > >> Similarly, we can add such line to the Commentary of every ts mode, or even to the major mode docstrings > > IF we do that, it’d be better to instruct users to use major-mode-remap-alist, since it’s easier to understand and use IMO. > > Sure. This way we also avoid duplicating the file name regexp. The purpose of major-mode-remap-alist doesn't fit such use, so this proposal is a no-go. Again, we've been through this already, at least twice.