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, 19 Nov 2024 19:56:05 +0200 Message-ID: <4cc676e8-cac5-4348-99b0-243baf74687e@gutov.dev> References: <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> <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> 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="11517"; 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 19 18:56:53 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 1tDST6-0002lV-AL for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Nov 2024 18:56:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDSSV-00010l-7Q; Tue, 19 Nov 2024 12:56:15 -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 1tDSSS-00010V-Lu for emacs-devel@gnu.org; Tue, 19 Nov 2024 12:56:12 -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 1tDSSQ-0004PZ-88; Tue, 19 Nov 2024 12:56:12 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 5DC4313801E2; Tue, 19 Nov 2024 12:56:08 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Tue, 19 Nov 2024 12:56: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=1732038968; x=1732125368; bh=x73Zvc+G6e921vvNrw/alxAT5kCGB1+eymBWTAFYqIQ=; b= RMdO/X+a3Zpp7WhLSCW/3CdNcdX6gdTA/9XDy48UMFIyRPgXBSWw1VCgP9gwANpB LW+8KnteoBBeX54710XzPcHiu1NOEACmikllN14HgrjsKRiujnmm2PhlNeeIqmsX bU01qbVaCP7vlgqL1eEVLiD2d1Hlj51asdIKlgroQmdKjJTQx1GW4Ftn2yxQWV8m lyZTnwjxrHtOi6uvK1bsq4Cgvph2vPxhJm8I/dBUig/E/LkdNaw5qjJbviwUHuUk EYUK3RCslmAxE91QJ3FzRsu4uF0uU7Wd4Aa1+LvLsAieKc6eImXCuhqcVim5tg8M 5JNAMApUi6VBhw9XSa2KIA== 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=1732038968; x= 1732125368; bh=x73Zvc+G6e921vvNrw/alxAT5kCGB1+eymBWTAFYqIQ=; b=U nbs6SL1en6bNfcSCW4ex+eN0dgjAggPLcfBny/fgurfX9+wPpZwTUB0K4OOYC46G +Sy1urYSSdz2in6/tk4ZkWnWW1s6ksPPZpTv9DtBrlY8ppU/JYwCv6KSzCKKvDPb wv1x24KiYk9FEk4XDwi+NiTcEV5f245JIJXc7y3nxUPoD8OKgQVQ7AbdMkGKhVDP VaB3pJJFDdp1kE2tQfZsCyumK6XRfLQpSpCVSXiqb12NExE/V4aQiZqIV6A3CB03 9k12IvluHhKnx0xtaun9dW5o4DyKSXzhq83h0dMiJYvNSITiLwl1k20IIXCt4+el tk4LHT5Juy2iw2nfGPTIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfedvgddutdehucetufdoteggodetrfdotf 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; Tue, 19 Nov 2024 12:56:07 -0500 (EST) Content-Language: en-US In-Reply-To: <864j43t8t9.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_MSPIKE_H2=-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 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:325511 Archived-At: On 19/11/2024 19:47, Eli Zaretskii wrote: >> Date: Tue, 19 Nov 2024 19:40:18 +0200 >> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org >> From: Dmitry Gutov >> >> On 19/11/2024 19:10, Eli Zaretskii wrote: >>>>> I don't think I follow: what are the problems with simply adding >>>>> associations to auto-mode-alist? >>>> When treesit-enable-modes is nil? >>> No, when the user customizes it to specify some TS modes as preferred. >> >> Using which data? > > What data is needed? The values to put into auto-mode-alist, e.g. the regexp(s). Normally, such an entry is added to auto-mode-alist during Emacs's startup (whether from that option's init form, or using package autoloads). If we want to do it later from the newly added option's setter, the setter needs to get the values from somewhere. >> Anyway, see the patch from my message 15 hours ago, lmk what you think. > > Wasn't the idea that the user will tell us which files she wants to > visit in each mode? I think we talked about making the option more granular (allowing to set it not just to t, but to a list of modes). That will be easy to add. But specifying the files as well is news to me. Wouldn't users who want that level of detail just go and customize auto-mode-alist instead?