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: Turning on/off tree-sitter modes Date: Mon, 25 Nov 2024 02:44:52 +0200 Message-ID: <4f8f8b97-6650-4a6f-b121-82964fec49cf@gutov.dev> 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> <86ttbwihp6.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="38030"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: johan.myreen@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 25 01:46:05 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 1tFNEq-0009j2-78 for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Nov 2024 01:46:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFNDu-00046G-2S; Sun, 24 Nov 2024 19:45:06 -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 1tFNDr-00045y-Of for emacs-devel@gnu.org; Sun, 24 Nov 2024 19:45:03 -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 1tFNDn-0004we-Vl; Sun, 24 Nov 2024 19:45:03 -0500 Original-Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 4EBAB1140136; Sun, 24 Nov 2024 19:44:56 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Sun, 24 Nov 2024 19:44:56 -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=1732495496; x=1732581896; bh=udjwC3VA61dJSduHyihIT8Yc25nCj1aPJIx6wuIKpvM=; b= OEYTHdwSbMtSkHKunwe/rxJJoDsv76M1DGDRyxyfZpP7EBgcHYtShv/3pV3NwxVe ne8++VhwoDI2slQ64FzxKELGhKeZxuELSfBeKKwqyPAuPvSj4GZxfi7gIENN5bY3 x4RXXdonea2v6EQytqtoVYNvxM7QAAMlwXSdCDAzW9qLkRcuZY5lChcJhV2nRGX4 jsqzxgduOtv4WBEA3ZXucGSAVHNij3Uf4XaJOGNmTTPSpKsllZEMMhcDihGUxg7Z /umPH0foRyDWOXygo15YjfBQW3j3Epg8vUTGKPqme9OreE4uA2irS/TLFbOMl1BZ /PjN33qeRDbB7yqYjdHrDA== 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=1732495496; x= 1732581896; bh=udjwC3VA61dJSduHyihIT8Yc25nCj1aPJIx6wuIKpvM=; b=K Ya+ePXFLySfHYgIajitawcuJ3dSXmCOeydsQiSVgC8P4HuoZRRfyJheS2QWg2SJk /Ssl+6szvUMTW84YTK8K3ibDZDdkwpabUduDtsJJUD3y8gebPF3fwLw5BKRNfnYo sChvNBKamkjiARWCbKqYffWOrxOEota0Uo828nE3f/YBUcs9KjRUpySwe3/fBHes 1436twhSrD2n1bkBpKS+hD+BjY6LL7qHsrQNIdpwHYAHnVd9/1AAjbla6iiKhwvT 4NVF2kFZ9yrnJPigKvbFF+AhHBF7JeZGPFdrTMIB+lAnUzgwhFOzW/uQgSI/PibQ KzbBTP+7AL7+jhjKj2ZFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeeggddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedt vddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep gedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpd hrtghpthhtohepjhhurhhisehlihhnkhhovhdrnhgvthdprhgtphhtthhopehjohhhrghn rdhmhihrvggvnhesghhmrghilhdrtghomhdprhgtphhtthhopegvmhgrtghsqdguvghvvg hlsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Nov 2024 19:44:54 -0500 (EST) Content-Language: en-US In-Reply-To: <86ttbwihp6.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:325680 Archived-At: On 24/11/2024 20:56, Eli Zaretskii wrote: >> 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. We could add more detailed annotations to those customization fields, so it could look more like this, for example: Major Mode Remap Alist: Repeat: INS DEL Cons-cell: Mode to map from: js-mode Function to call instead: js-ts-mode ...