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: Tue, 5 Nov 2024 19:05:42 +0200 Message-ID: References: <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> <86ttdgthg2.fsf@gnu.org> <86ed4kt2ws.fsf@gnu.org> <8e30fb5c-8e1b-4f73-98eb-50c5c396efb0@gutov.dev> <86ldyqsrax.fsf@gnu.org> <10864c02-4bfd-41c3-bb45-6fe1155f9676@gutov.dev> <867ca9shcw.fsf@gnu.org> <7cb15f5c-efd0-4516-8190-a53c0d958eb6@gutov.dev> <86ses8x1po.fsf@gnu.org> <865xp3w64u.fsf@gnu.org> <61171da3-7428-4572-bc13-783766a123b5@gutov.dev> <86v7x2u7rz.fsf@gnu.org> <86msidubg4.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="22779"; 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 Tue Nov 05 18:06:48 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 1t8N0x-0005le-JN for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Nov 2024 18:06:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8N04-0007bi-JW; Tue, 05 Nov 2024 12:05:52 -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 1t8N02-0007bH-Ft for emacs-devel@gnu.org; Tue, 05 Nov 2024 12:05:50 -0500 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 1t8N00-0006Wj-2t; Tue, 05 Nov 2024 12:05:49 -0500 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id CA4DB13806C9; Tue, 5 Nov 2024 12:05:46 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Tue, 05 Nov 2024 12:05:46 -0500 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=fm2; t=1730826346; x=1730912746; bh=lMzMHpb+mdHaEnjV/T3ybuhXSz8RN40jqxT/qGqxbPw=; b= Jx+e2uacsTQYHXt3WpqhwMm4XGSXA2TQV7RGi0ny9yAzLbiFfeGM//T/c5djQTPY 8fO8qaNVluxG3RtyxbwnYZkxEkzTR19CyL4mCD2H290Vt3Qk9V7Wj0oA7EasymAN gZOoLU8JnXemafMidgot5jPO7y2mUnlfc7dFGigzJByCCvY3ov4KbO/zBVGPdkFn me9xQ4B/UO+foPvRlApj7QVTBq3SBjEDDI/9uQLGRUuNRzW0y4UdxYeC5BOmtpXJ 3kN4f3X+Uv2FtPed1XyA9mGm8pNY0xJMn4KiyUAs2X3B9+S5m8wXYdzzRv3s0Ta9 Opy0FbgBXXIpChKktS0eyg== 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-sender:x-me-sender:x-sasl-enc; s=fm3; t=1730826346; x= 1730912746; bh=lMzMHpb+mdHaEnjV/T3ybuhXSz8RN40jqxT/qGqxbPw=; b=i cyV71xx5CCo6Ipxy9NcVLxYLuA7xGdj7PlEB31FyvZxPTCBaZFm23BS7+XwLO8ub MrTm5QcbSjwgNdj1rRdP7XpbyQx49VoIveeNYcZpj5KgpfuAqbTztYCudjOQ28Lc wVTjO1+cw7M5EXKzwXkDOLBAjjf2B+dnvKD1SQtlaSQWDmyXpofKmktGPvNuNtmw 2XI2nxuQ25PgTa0ouQcBusaq+hj9+l/minLnAJOCjYJa2DJghSzpznoUutTUYPCn sr8ewJyAwj5xu3WmW2c9hYtWkinuvkyrCPUHthfkoNSz94bn/z7wbFahmmPXcKBP nNk85dQO1EjOMypqeOWow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtddtgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeffieefvdelueektdfgleeigedugfevkeefjeevjeff teffueeuueeghfevieduvdenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthho vhdruggvvhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpth htohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjhhohhgrnhdrmhihrhgvvghn sehgmhgrihhlrdgtohhmpdhrtghpthhtohepvghmrggtshdquggvvhgvlhesghhnuhdroh hrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Nov 2024 12:05:45 -0500 (EST) Content-Language: en-US In-Reply-To: <86msidubg4.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: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 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:325143 Archived-At: On 05/11/2024 14:11, Eli Zaretskii wrote: > (Are we really going to reiterate that old discussion? Nothing's > changed since then, so the opinions and conclusions will be exactly > the same.) No need. I thought we were in agreement earlier in this thread (https://lists.gnu.org/archive/html/emacs-devel/2024-10/msg00319.html), but apparently not. >>> Why is it a problem to ask users to whitelist some of these modes? >> >> Not a problem, no. They can do this already by customizing >> major-mode-remap-alist, for example. > > That's true, but customizing a single variable might be easier and > more easily discoverable, I'd think? If not, then we should leave > things as they are. The key improvement is to make modes stop altering auto-mode-alist or major-mode-remap-defaults during package loading or in major mode functions. >>>> This is also a valid approach, albeit a more complex one. This variable >>>> would only be tested during Emacs' startup, though, and during >>>> 'package-initialize', making its use not very transparent. >>> >>> It will be tested right there in auto-mode-alist, like the change you >>> proposed, just with another test. >> >> I'm concerned about the ergonomics of this option. > > What ergonomics? User expectations, see below. >>>> E.g. we >>>> wouldn't react to having it changed in Customize. So it's not my >>>> preferred approach to this problem. >>> >>> I don't see why this couldn't be a defcustom. >> >> Would it have a non-default setter? > > Probably. Why is that a problem? Suppose the user customizes treesit-modes-enabled (the new option) to t. Would that have to enable the file associations for all treesit major modes right away, in the same Emacs session? That would require having more data stored somewhere, which currently isn't. Some other registration hook for all ts modes to use. If that's not necessary - not a problem then, easy to implement.