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: Turning on/off tree-sitter modes Date: Sun, 24 Nov 2024 20:56:37 +0200 Message-ID: <86ttbwihp6.fsf@gnu.org> References: <86ttc2rrh8.fsf@gnu.org> <86cyipsp94.fsf@gnu.org> <9cd17f8b-f88c-49f6-9024-0b6d297e18ac@gutov.dev> <867c8xsmri.fsf@gnu.org> <566ac897-ea5e-4141-bcb3-306d43c9118a@gutov.dev> <865xohrvfa.fsf@gnu.org> <86wmgwnyle.fsf@gnu.org> <178dfc7f-bc2d-4e3b-8417-a616ccc0eef3@gutov.dev> <86v7wgnxlz.fsf@gnu.org> <01d83ec8-c02b-4806-8764-38dc89a89125@gutov.dev> <86ttbzojho.fsf@gnu.org> <930f5c8e-1481-43a5-8f1d-2c13a98df74f@gutov.dev> <86r072krq5.fsf@gnu.org> <8b907a41-aa08-4b61-bced-7d4d3fcef4b2@gutov.dev> <87frnhsvp3.fsf@mail.linkov.net> <0d1e2770-0889-4862-8105-8a5f4631b11c@gutov.dev> <87ed31gku5.fsf@mail.linkov.net> <86plmljbsm.fsf@gnu.org> <8734jgftif.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, johan.myreen@gmail.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 24 19:57:25 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 1tFHnR-0006Wd-Hc for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Nov 2024 19:57:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFHmm-0005yN-5j; Sun, 24 Nov 2024 13:56:44 -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 1tFHmk-0005xy-MW for emacs-devel@gnu.org; Sun, 24 Nov 2024 13:56:42 -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 1tFHmj-0008G9-LH; Sun, 24 Nov 2024 13:56:41 -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=XbcBNaok689ol3LulsjWtzSNugg6MS85p+SvG++f64Y=; b=njtNuzw+jyeS e16/ikI43P6XmZBANKTB+d4BzZ5BseZV6IgRsKJi388nL+ZI6aqTS0JGIuKtFyTg+jniMfyI9SAFP 32S+AR5o9a3OAgJK2OoFT5IMahdlr0/dghhx4YH/e8U+dYPGhB2CFW/jJeJlm8SVyTXv0cqDGx96W t+bUHCk5cLW1XtngtKWWJISQEx9ZgkpNZJ+9gpPPwVAvwLhe6nnwHGTRoyOzRo7a7b91uoQA+OxvN J6P+h64mu7QW22QGI53twNaz05jerC5DBwp7LMMpvO7LFY6fewMrWhy0PJhji094K9VcZKx1EcFtJ OM10Rnm/plbp9Sf0u0bbcQ==; In-Reply-To: <8734jgftif.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 24 Nov 2024 19:29:44 +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:325673 Archived-At: > From: Juri Linkov > Cc: dmitry@gutov.dev, johan.myreen@gmail.com, emacs-devel@gnu.org > Date: Sun, 24 Nov 2024 19:29:44 +0200 > > > Using alists or lists for customization requires that users understand > > the basics of lists in Emacs, and have good command of the relevant > > primitives. As the experience of default-frame-alist suggests, that > > is not a trivial thing to master (IMO, default-frame-alist survives > > only because most users don't customize it directly, but via > > higher-level APIs like set-frame-font etc.). > > > > Undoing the preferences is also not easy when lists/alists are used, > > because there could be more than one element in the list, and it's > > easy to forget to remove all of them. > > The Custom UI helps to avoid such problems with the buttons > to add/remove list elements like We should also think about customizations directly in init files, not via Custom. > major-mode-remap-alist: > INS DEL Key: js-mode > Value: js-ts-mode > INS DEL Key: ruby-mode > Value: ruby-ts-mode In addition, I personally find this UI quite perplexing, and kinda doubt users who use it will understand what "Key" and "value" mean in this case.