From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Wed, 18 Jan 2023 03:23:57 +0200 Message-ID: <8e8cf3ba-0efd-6bdd-84ad-103b89a23f2e@yandex.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28287"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: Eli Zaretskii , monnier@iro.umontreal.ca, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 18 02:24:48 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 1pHxC3-0007DT-C4 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Jan 2023 02:24:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHxBR-0003DN-Hv; Tue, 17 Jan 2023 20:24: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 1pHxBP-0003Cu-Br for emacs-devel@gnu.org; Tue, 17 Jan 2023 20:24:07 -0500 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHxBJ-0003rY-LX; Tue, 17 Jan 2023 20:24:07 -0500 Original-Received: by mail-ed1-x532.google.com with SMTP id v30so47621958edb.9; Tue, 17 Jan 2023 17:24:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=3es2ojysEKz1nmdvFPhort1IzhFzsI3YE7MGEzImfeU=; b=dSDkIQLYr4h1DnjvgCXsS0gqYJ9OjgAP+xpcGcxks0ws/0EoVzlbzewJSFc/J0JlJK 0WHlKGr+7a85S4tNlQIWoYacJuUphEjrN5mEowlJwzbuYesbJIPR9a+KQk456Q+EMuHS Yq7M+1yXpH/iFc9o1iwDytnKePqbdofDL74MMWxeIH5hfmOHsfa6C05MSac5jbBe06fs ZzgFjvrUC//Pn++Sjqu8dM2Q4fVOhYezLbZaXsiiSSZVfBNFI+nzfBI2r9q//cVgLsZs 0tWjkWrQ2VNTJhovo7X0t+uTf7kOGOgVSxGAYUxDkCvKxnFCBnvf97yCx1xjmn/mHeQk iKRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3es2ojysEKz1nmdvFPhort1IzhFzsI3YE7MGEzImfeU=; b=DBZb8VTnJ0ESLcjEKWWhUvXel/B/IrGB0SlasPDEmyRaSjsMXE7RZMhZMxPIm+4vs6 zcFnSBklr9oEh2CT/BMSNNZxGbdI66brveVIYRpIFYSrK7mv/QCn4EEh+3gBLxStjUS8 Q9JzADpUm/kQ5LE24YvNXYWSdvue9AVj8nQoAxK7FJ2DqOOfwmk2BWnAPUJLGWzuVkdx 7kHY2is9rkrJTxTarQc5qqKvdA2XJ5Xk9/TTeC2/PnrBw+Eg2uKutCp8lIXwgWc5/xto uOxkPpKJIaDPFqq2TLgVwgqlsKv1Px3hyTYWBVK8UC4JkquYGPhETNG+HQ5ql5edMas9 okYg== X-Gm-Message-State: AFqh2kr491YBtL3k8GU5KziICFwUJ0XDjCohDRQSPYPp5yFc5rDreZJZ H+fQL1UTBrqHBjxIr1zrg2E= X-Google-Smtp-Source: AMrXdXuvmz312WqJWgcwJbpo7buxWrA3xcTuhoNZvvvJ4tHlqZxZ9sZ0yuIvxEigf0DJv6tKWkmNyw== X-Received: by 2002:a05:6402:2cf:b0:49c:1203:b7b0 with SMTP id b15-20020a05640202cf00b0049c1203b7b0mr4990889edx.26.1674005039562; Tue, 17 Jan 2023 17:23:59 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id d9-20020a1709063ec900b007c0d6b34d54sm13760941ejj.129.2023.01.17.17.23.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 17:23:58 -0800 (PST) Content-Language: en-US In-Reply-To: <8BA3366D-479D-4697-9DD6-7CF26C840EA9@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=raaahh@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.097, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:302504 Archived-At: 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.