From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: An anonymous IRC user's opinion Date: Tue, 19 Nov 2024 19:10:53 +0200 Message-ID: <86cyirtahu.fsf@gnu.org> References: <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> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: johan.myreen@gmail.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 19 18:11:59 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 1tDRle-0006op-Sf for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Nov 2024 18:11:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDRkr-0005Op-R3; Tue, 19 Nov 2024 12:11:11 -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 1tDRkk-0005MB-6e for emacs-devel@gnu.org; Tue, 19 Nov 2024 12:11:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDRkd-000139-TV; Tue, 19 Nov 2024 12:10:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lYE+tp2LaACXjpQEWV0UqwQXZ8A8x7r9OfocxfzwE7I=; b=b0eHJrUfFI0v c4wApuYiRAOSXL4ZSBxt7j0NIPU1n65vxLkYCpnhR46csVizyk5fpzCkLzKCVfXLrqPUp2TGzTZ1b dUX6DgyqYrCW+HSABWEApHUydvxQNpKwWyc+/nWbpwCg4u5pLIwiPkHbWfUITa5ToelM9PTZqLGPY Evt1y/7xbeTqySXF7pnl/c3EHeyFNpu5ih8W8d2uDIyM0x9MvyML9aH4fb8WiAP3I7zSNz/UOHkn7 ObspqvaXp64+RP9alXQIE/94tZ1kPBHUzyVKuFgCv1cUOZaXHY6Xqz0u7xUSnyCjUoMdJrOSKW9fb TxbVHpihZLEgDrSaK+Yq/g==; In-Reply-To: <7aa4a684-3374-4d0f-8efc-c4df29337c5e@gutov.dev> (message from Dmitry Gutov on Tue, 19 Nov 2024 18:13:31 +0200) 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:325507 Archived-At: > Date: Tue, 19 Nov 2024 18:13:31 +0200 > Cc: johan.myreen@gmail.com, emacs-devel@gnu.org > From: Dmitry Gutov > > On 19/11/2024 17:41, Eli Zaretskii wrote: > >> Date: Tue, 19 Nov 2024 04:44:06 +0200 > >> Cc:johan.myreen@gmail.com,emacs-devel@gnu.org > >> From: Dmitry Gutov > >> > >>>> 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. > >>> First, I still believe we can find a way of turning the enabled modes > >>> on in the existing buffers. > >> Existing buffers vs new buffers is not the main issue. Getting the > >> auto-mode-alist or major-mode-alias-alist entries for modes that were > >> previously "off" is something we'd need a registry for. > > 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.