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: Wed, 20 Nov 2024 20:38:05 +0200 Message-ID: References: <865xp3w64u.fsf@gnu.org> <61171da3-7428-4572-bc13-783766a123b5@gutov.dev> <86v7x2u7rz.fsf@gnu.org> <86msidubg4.fsf@gnu.org> <867c9htwt7.fsf@gnu.org> <387887a4-ba19-485e-8805-d1aabe2058ff@gutov.dev> <86y11xsbil.fsf@gnu.org> <17465b85-430a-4e91-8b12-769b60181ada@gutov.dev> <86ses4sglw.fsf@gnu.org> <86fro4sddd.fsf@gnu.org> <6ac73c67-cb2d-48ef-8f1d-683c5335aba5@gutov.dev> <8634k4s2r2.fsf@gnu.org> <082b0388-b3a1-4523-9f9b-5ead4b110e11@gutov.dev> <86plmrtemx.fsf@gnu.org> <7aa4a684-3374-4d0f-8efc-c4df29337c5e@gutov.dev> <86cyirtahu.fsf@gnu.org> <556779b3-9308-4fd3-9050-bf9c49658cd1@gutov.dev> <864j43t8t9.fsf@gnu.org> <4cc676e8-cac5-4348-99b0-243baf74687e@gutov.dev> <8634jnt5e3.fsf@gnu.org> <4864104c-cb23-4356-ad89-2fea111db66c@gutov.dev> <86ttc2rrh8.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="15156"; 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 Wed Nov 20 19:38:57 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 1tDpbM-0003k9-Ch for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Nov 2024 19:38:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDpai-0008K3-Qs; Wed, 20 Nov 2024 13:38:16 -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 1tDpae-0008Jl-KI for emacs-devel@gnu.org; Wed, 20 Nov 2024 13:38:12 -0500 Original-Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDpac-0001ZH-3J; Wed, 20 Nov 2024 13:38:12 -0500 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id 45D1C254013C; Wed, 20 Nov 2024 13:38:08 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Wed, 20 Nov 2024 13:38:08 -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=1732127888; x=1732214288; bh=XuuiuXxdRxff/q3Bss1S0lNWtnxSxKF7nGtT1rPivfw=; b= vkSBzPNegrnTLe4PaaOgLqxiAVMLK/ktqdPPw4fWR9k7+xqgZwID6SlHPbmdJ8zM V2EiBY9TF+tHOTatQINpWgTDEPKAE9H6Qma75eqyH9k7p22zdVm/SWC6ZM2d+vUw GHiEcd9JWqVnH3sDigU8lhZ9qf77hNBtqpNPNaiSG7FWkS+67UzXHUnYvioOvriN q9MtPRcZy1Xx0DZqw95I166zjuvIh03n+1oxM5dha6Zy6ZEGDNZzQIG2L1DZTqmm mAk7SWACa9yAnd/G4+oUabdIkHbXr5CD2IvIa/3/J8BbpCo4hm1IQhbsSRrrv/tz rjH9/8bbD5aEdjCcpocGCQ== 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=fm1; t=1732127888; x= 1732214288; bh=XuuiuXxdRxff/q3Bss1S0lNWtnxSxKF7nGtT1rPivfw=; b=q dgikuAVA/s51niKlKJxH5UF7LqFAc/dEi2bW/c2C82qd897+C1hpDETSYaRg7MBt P7l27Fdf0jnBYQP7sXXRhMgxLH6AJxa6UPURahao3gu1q+fLcOi5Ev+FItWhprUT 2OOxdkViqyGl5XzTzuMGy6mqYgtDv3Q3HSRDWmnwVF23I3G5lpyuRs6tjI8sB2qe ESjtxXjNUXqywqxYFQI3+tfLQDRpZ4GlVzQCY2kNyYjRms/pwl6/RV0NKDcqKtOy 2V/4P8gWw1RdqS1GHeUPWzLJsocwx2QNfUD/ciQsySx+zEAbuiTtv+6GRygWOtVX 9Bp2u8NIVvlAHWfGz0R1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeggdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepffeifedvleeukedtgfelieegudfgveekfeejveej ffetffeuueeugefhveeiuddvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhht ohhvrdguvghvpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtph htthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehjohhhrghnrdhmhihrvggv nhesghhmrghilhdrtghomhdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurd horhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Nov 2024 13:38:06 -0500 (EST) Content-Language: en-US In-Reply-To: <86ttc2rrh8.fsf@gnu.org> Received-SPF: pass client-ip=202.12.124.152; envelope-from=dmitry@gutov.dev; helo=fhigh-b1-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_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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:325528 Archived-At: On 20/11/2024 14:59, Eli Zaretskii wrote: >>> Maybe so, but that is not always easy nor user-friendly: getting the >>> regexps right is not trivial, many people make mistakes. >> >> Even if that's true, I'm not sure what workflow you have in mind. > > Someone mentioned the possibility that Emacs could propose using some > mode when user visits a file, AFAIR. So the workflow would be to ask > the user whether she wants to turn on mode FOO in files like this one, > and if the answer is YES, modify auto-mode-alist accordingly. And the init script. Or .custom.el. Keeping in mind that that value might be modified somewhere else during startup, I guess. Philip's branch is the closest to that idea. Would you be comfortable to replace the current setup with it? The result can be that all ts modes are disabled by default, but when visiting a file extension that is currently associated with fundamental-mode, but we have a alternative mode available, we'd offer to the user to "install" that. For built-in modes, it would mean a corresponding major-mode-remap-alist or auto-mode-alist customization. I'm fine with that idea, but it'd seem like a change in paradigm. >> My >> goal here is to fix the problem of ts modes installing themselves into >> auto-mode-alist (and major-mode-remap-defaults) haphazardly, with >> associated problems like https://debbugs.gnu.org/74339#38, for example. > > We all want to find a better solution, the challenge is to find one. If a solution is presented that solves the scenarios that the current one does, while avoiding some existing problems, it should be considered a win. Even if it doesn't include some additional nice-to-haves. >> and not a replacement for the current setup. > > What current setup? Please look at the patch in https://lists.gnu.org/archive/html/emacs-devel/2024-11/msg00515.html, the current setup is on the lines being removed, and the proposed one is on the lines being added.