From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Wed, 18 Jan 2023 07:36:10 -0500 Message-ID: References: <84973.1672843723@hassadar.pretzelnet.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> <835yd43483.fsf@gnu.org> 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="39283"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , casouri@gmail.com, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 18 13:37:00 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 1pI7gZ-000A25-In for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Jan 2023 13:36:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI7g3-0004Ob-5E; Wed, 18 Jan 2023 07:36:27 -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 1pI7fw-0004KJ-8U for emacs-devel@gnu.org; Wed, 18 Jan 2023 07:36:21 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI7fu-0005fk-05; Wed, 18 Jan 2023 07:36:19 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 044EB1000D5; Wed, 18 Jan 2023 07:36:16 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 593821000C4; Wed, 18 Jan 2023 07:36:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1674045374; bh=eIoheVkluSPR7/7BFQH62Nv+EXfqnYc+aH0GldPBLFo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bUbhthZZiWpfHkhAWqn8i2KHWXeClS8fCFg0ObX4geoPl5PR5xRPAmxWpjNYF9sji jeRJna31NSTR+y7yEQtFU6nlRbIxbG8mt9fE1k/rElYTWV/9v5mVcLgJYeGB0ADYCp H+uF8ehRdNV76TV32IZ5cVm+ijpZU2PP6FCgg9tQxGaJmkkEaA1VKMAMDXLkl3QVYs +DL4C+KUwsSASXTp1EG2gTCRc7qBhiLBWBwTfrg2pALMFViMnzjgboSecxv35QXwQZ K0cF1ZuUWp4Y09cugq+RC0ReDrP//UIR/PVqX1PkCVm0/Um+zh+6EV2YyFRmN2WJUy yv7cgYRSfmFYw== Original-Received: from alfajor (unknown [24.62.78.115]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1287C1209F7; Wed, 18 Jan 2023 07:36:14 -0500 (EST) In-Reply-To: <835yd43483.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Jan 2023 05:34:52 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:302512 Archived-At: >> > IF we do that, it=E2=80=99d be better to instruct users to use >> > major-mode-remap-alist, since it=E2=80=99s easier to understand and us= e IMO. >>=20 >> 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. Maybe I missed something (I'm having trouble keeping up with emacs-devel these days, sorry), but I don't see why you think so. It seems perfectly appropriate (and indeed fits the original goal) for `Commentary:` to say something like: ;; If you want to use this mode by default, you can add the following to your init file: ;; ;; (add-to-list 'major-mode-remap-alist '(ruby-mode . ruby-ts-mode)) -- Stefan