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: An anonymous IRC user's opinion Date: Sun, 13 Oct 2024 12:37:38 +0300 Message-ID: References: <87plodsjsd.fsf@web.de> <865xq14dwp.fsf@gnu.org> <343c4d04-af53-4da2-9d1c-c616c74821e1@gutov.dev> <86plo8369c.fsf@gnu.org> <63edeeea-1f24-4d3b-abc8-b96b164942e4@gutov.dev> <8634l1zsej.fsf@gnu.org> <9a8b97f8-def3-43ce-b71b-1f09bb05afd4@gutov.dev> <86cyk4vcld.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26158"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: johan.myreen@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 13 11:38:41 2024 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 1szv3g-0006ey-JQ for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Oct 2024 11:38:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szv2p-0008Oa-0Z; Sun, 13 Oct 2024 05:37:47 -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 1szv2n-0008O8-8I for emacs-devel@gnu.org; Sun, 13 Oct 2024 05:37:45 -0400 Original-Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szv2l-0001nB-DG; Sun, 13 Oct 2024 05:37:44 -0400 Original-Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 180BE13802D9; Sun, 13 Oct 2024 05:37:42 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Sun, 13 Oct 2024 05:37:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1728812262; x=1728898662; bh=AlGh7fhEy3ZRqxOk8Q2J18BcF2bwjT2/bq8vXv3BrWs=; b= LMWVd9Sbm1ZMjVJ7wsvRZousVYrSFhnR5YGhJq6YuBVkJqn8LDdcjVnnjm4+ZY3U a/jQZclIBTGZX4bu2IGg2MA1O4/PV/ZXvL5t4Oj76oG6uOItaiJYYdtq6QS7jOmG 2Zhuyij43sPy7f8/oCmmtC+9hmU1uWyeBV68rySGoz+/jiFH6PScH6f7v69uxBQL 5fapvqtJzJ6UW1e1De2M5W5rX4YlP6VVz1+MfKstY1dMxonop14mGzd/W+XmUB3n 3gikIWEw9X91L2G97+lw0zF44y/DuBdHFSOv3WgoiCCR6QeS6E3N4qjYDXH5vZC+ 2I4Md8kaemQqeU+NGDz18g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728812262; x= 1728898662; bh=AlGh7fhEy3ZRqxOk8Q2J18BcF2bwjT2/bq8vXv3BrWs=; b=G EF5gKcSTzcZDdfiL1oanW1VtjzNa4tzQRrymRG7E1eA34IghXN2Wm3fMor/XuO6d 4d9VWBm2i65WHtedoU45Y6hHkAyOgjDS69V7HPbhkP3Zn4ZGFmYVixiWP0Ix6wFW bCKs9d36voF52M7dV8Tz6j2Pk/kjBUdO03NwU+Al3PGMqf2CKOa2hMkUGTG0Le4X /CG/M5/iHpR4WH2f125JKXERxNvh7Ny35QQLsSMM8hrdcEFlnphclv8ZhDlhd/pA PgaPBk9gia16op5HyfF+RAjIB6RK4bpA2og3s0eOmjv4N4fBn7SCxOJI9UUEs5HT pRKfZNHo0QO/VJ1IKMlZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdegfedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieekueef tddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh dprhgtphhtthhopehjohhhrghnrdhmhihrvggvnhesghhmrghilhdrtghomhdprhgtphht thhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Oct 2024 05:37:40 -0400 (EDT) Content-Language: en-US In-Reply-To: <86cyk4vcld.fsf@gnu.org> Received-SPF: pass client-ip=103.168.172.146; envelope-from=dmitry@gutov.dev; helo=fout-a3-smtp.messagingengine.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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:324539 Archived-At: On 13/10/2024 07:41, Eli Zaretskii wrote: >> The proposal I'm quoting is straightforward: if Emacs is compiled with >> tree-sitter support, enable the modes and warn when the grammars are not >> available. If Emacs is not compiled with tree-sitter, do neither. >> >> That kind of rule has predictability: for example if the grammar was not >> installed originally but the user did that while Emacs was running, the >> corresponding major mode will start working the next time the user tries >> to enable it. That wouldn't be the case if we conditionally alter >> auto-mode-alist based on grammar availability. >> >> The above approach should be quite easy to implement, if there's >> agreement to it. Otherwise, the issue is about choosing the details of >> the UI first. > > It is not clear which modes you suggest that should behave like that. > Surely, not all of them, i.e. including those for which non-TS modes > are part of Emacs? I don't have a strong opinion on which set should be enabled - maybe just all TS modes which we don't have built-in counterparts. Maybe not even toml-ts-mode, since there is conf-toml-mode. Maybe make some exceptions for TS modes that provide significantly better functionality than the classic ones. Not sure which ones. What I think is important, though, is avoiding major mode functions modiying auto-mode-alist at runtime. > And yes, I would like to hear from more people what they think about > the possible behaviors in these cases, including how to handle missing > grammar libraries. Everybody's welcome to chime in.