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 (was: An anonymous IRC user's opinion) Date: Tue, 26 Nov 2024 17:17:48 +0200 Message-ID: <86ed2ygh2b.fsf@gnu.org> References: <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> <4cc676e8-cac5-4348-99b0-243baf74687e@gutov.dev> <8634jnt5e3.fsf@gnu.org> <4864104c-cb23-4356-ad89-2fea111db66c@gutov.dev> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, johan.myreen@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 26 16:18:52 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 1tFxL2-0004LC-0A for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Nov 2024 16:18:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFxKA-0002do-Fi; Tue, 26 Nov 2024 10:17:58 -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 1tFxK8-0002dd-Tv for emacs-devel@gnu.org; Tue, 26 Nov 2024 10:17:56 -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 1tFxK8-0004T9-Is; Tue, 26 Nov 2024 10:17:56 -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=jqv4H14V0v9pqCOhE3javyYpHGD+MzWEG+IZ/HNHleg=; b=ar5VIj9HyfSu B7r21uwFauYGjQSrfpP+ouZ1VTOcaku5Bm5r/6WDWM+C+UQ8vwbfUDow/C2NebfdaU2hZ1bsF74xy VMPlCXdxATjft0fLAhk0tWWc16NjF67tIz7pFafVaPCXc8OL1EIm0267qek3IJiNy8d6kf79n2OG7 dzHk8zC+bXaYcHOXtzs0+vW0AxRk/kFLnzJgcImCuFCwzCwk/ETpD1csgOmERMo3YBhP8vnA4Eb4x aXO0IAkFnLiecpxNS8DknO7UNmixX2yH3aHO4IeJ+bvVKhJppea9mODaW6VohFereVByWbcX8KZ+t 5Ir3YXgEM+qlZTro5/NG3w==; In-Reply-To: (message from Richard Stallman on Mon, 25 Nov 2024 23:54:09 -0500) 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:325714 Archived-At: > From: Richard Stallman > Cc: dmitry@gutov.dev, johan.myreen@gmail.com, emacs-devel@gnu.org > Date: Mon, 25 Nov 2024 23:54:09 -0500 > > > > Not a command, though - a user option. The command is 'M-x > > > customize-variable', at least in the current version. Though I suppose > > > that's also up for discussion. > > It makes sense to have a user option for this, but I think it would be > good to give it also a minor mode to toggle or set TS in the current buffer, > following the usual minor mode arg conventions. Minor mode that controls major modes? Isn't that contrary to the relation between major modes and minor modes? Usually a minor mode is a minor variation of what a major mode does. It doesn't switch to a different major mode.