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, 6 Nov 2024 18:07:46 +0200 Message-ID: <6ac73c67-cb2d-48ef-8f1d-683c5335aba5@gutov.dev> References: <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> <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> 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="10836"; 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 06 17:08:51 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 1t8iaQ-0002gy-Hf for ged-emacs-devel@m.gmane-mx.org; Wed, 06 Nov 2024 17:08:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8iZb-0004Jk-D7; Wed, 06 Nov 2024 11:07:59 -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 1t8iZV-0004Ip-Tb for emacs-devel@gnu.org; Wed, 06 Nov 2024 11:07:54 -0500 Original-Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8iZT-0004aB-Fs; Wed, 06 Nov 2024 11:07:53 -0500 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id A5309114016F; Wed, 6 Nov 2024 11:07:49 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 06 Nov 2024 11:07:49 -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=1730909269; x=1730995669; bh=BnbNBGWG4qBqdZeCI8FhkK58os3Tnp7cQQjiUxRCDwM=; b= YmzWDhW/5pkuT3amBkV++2DjSeYu0eRuRornlRjXHTg9+fag1KSdtDgpsda+fScW Wk5Rtg5UYI5AJBkLLV/Cfh1j2ocSB2DjULYQOUQ31S1mM1AbdjceEqkZAlWX/BQL KmBeaEf8UeVrGZYinKXcrc0GUbhgBTbwjeQ5wUb1z/vEWfsMAKcJ6laOBJA7apCn bdubEW8pqdaPv6bYrrLbQ3QBuD2vmjwt9zC3c2XWOfOw8x8IeRQ+GXNe2whf7C9l TltPQa/6pyUHEfwySFzg65LMegxxJPzTd9RK824oTcQXrj994VDR34WmbRriIUWH Wqz/YXBOY960j6T9L3MPJQ== 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=1730909269; x= 1730995669; bh=BnbNBGWG4qBqdZeCI8FhkK58os3Tnp7cQQjiUxRCDwM=; b=K WebP4tOPGhOIj3QpDP5Da86j2C01Gv1NALrScAcqE569FA8YduXIxf8vqT9IOEU4 He68K+VJ32NvQWTZ+47GIeq1lw39DD2lzoDUEvKvJvnGg6p415yvWkcqRap+LADA vA7su/SSLt6fnnoGu/VWBukzfFy1ZJUao1EdTY/I2G7OcweftlpxU0bHwXTouEbi t4qLv4rfaGlGoGN2dXxwde47lRD+jqH0Kzc6kkq9vdTdNlL9KJYpzro4ua2gbART KKzP9lpnusexj3FVpV4NKUPrk2L7GKc4VCHTfhMb7Hfk4NCjgI1VsgRwa8y7zYBN jDZ7VbJLlNI3+Z9+VLkqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtddvgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedt vddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep fedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpd hrtghpthhtohepjhhohhgrnhdrmhihrhgvvghnsehgmhgrihhlrdgtohhmpdhrtghpthht ohepvghmrggtshdquggvvhgvlhesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Nov 2024 11:07:48 -0500 (EST) Content-Language: en-US In-Reply-To: <86fro4sddd.fsf@gnu.org> Received-SPF: pass client-ip=202.12.124.149; envelope-from=dmitry@gutov.dev; helo=fout-b6-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_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:325179 Archived-At: On 06/11/2024 15:25, Eli Zaretskii wrote: >> Date: Wed, 06 Nov 2024 14:46:48 +0200 >> From: "Dmitry Gutov" >> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org >> >> >> On Wed, Nov 6, 2024, at 2:15 PM, Eli Zaretskii wrote: >> >> > Date: Tue, 5 Nov 2024 22:59:09 +0200 >> > Cc: johan.myreen@gmail.com, emacs-devel@gnu.org >> > From: Dmitry Gutov >> > >> > On 05/11/2024 21:53, Eli Zaretskii wrote: >> > >> Suppose we have this in css-mode.el: >> > >> >> > >> ;;;###autoload >> > >> (if (and (treesit-available-p) >> > >> treesit-modes-enabled) >> > >> (add-to-list 'auto-mode-alist '("\\.css\\'" . css-ts-mode))) >> > >> >> > >> And treesit-mode-enabled is originally nil. >> > >> >> > >> Then the user customizes it to t. >> > >> >> > >> What does its setter do? For css-ts-mode and other modes. >> > > >> > > It could turn the mode on in every buffer that visits a .css file. Or >> > > not. >> > >> > Based on which information? >> >> buffer-file-name and auto-mode-alist, I guess? >> >> But auto-mode-alist won't have any relevant entries because when its form (above) was evaluated, >> treesit-modes-enabled was nil. > > Are you saying that it is impossible to turn on the mode in relevant > buffers? I find that hard to believe, but if you are right, then we > could refrain from doing this retroactively. > > (And I still don't understand where this discussion is going. What > point are you trying to make?) I'm not trying to make a point, but to find the right tradeoffs. You wanted a user option - sure, no problem. But if taken the most straightforward approach, the option would only have effect after restart, and not on the current session. Otherwise it would need more information available somehow. You asked which data - the description was in the previous messages.