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: Make all tree-sitter modes optional Date: Thu, 16 Feb 2023 17:42:51 +0200 Message-ID: <83pma939c4.fsf@gnu.org> References: <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <83h6wr6gmz.fsf@gnu.org> <868ri140sr.fsf@mail.linkov.net> <83fsc92gbz.fsf@gnu.org> <83cz6ccagy.fsf@gnu.org> <838rgzaqmj.fsf@gnu.org> <7bad77ae-a176-d49b-5115-dbadf7e6d1bc@yandex.ru> <83cz6aaeys.fsf@gnu.org> <837cwiae2c.fsf@gnu.org> <83r0uq839h.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4211"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dgutov@yandex.ru, acm@muc.de, juri@linkov.net, casouri@gmail.com, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 16 16:43:33 2023 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 1pSgQ0-0000rs-PE for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Feb 2023 16:43:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSgPT-0003no-IR; Thu, 16 Feb 2023 10:42: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 1pSgPS-0003gQ-60 for emacs-devel@gnu.org; Thu, 16 Feb 2023 10:42:58 -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 1pSgPQ-0004TF-0u; Thu, 16 Feb 2023 10:42: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=yuVX9Vfz0Bt13MbeRV691TjM0X8bKbLwh/fN5GT+C8U=; b=mEALb+cZNEPL C1edc5MZAw8zF3ITBTbpMvLYtX+nq14JmROQNtd0qVf7ccsm8Rw8jfKkCwb8HpEjNo6WXQZgNNmWd Zqz1iFZNqUHUkwTcYu5wnFzBgT8/yI/PRnIegnG/41OcxaFKC+I2u0CpFTAuqZ2FWUdki0Xss8F6/ edwDfwxSc834h0m4G9F5LtTL0eb+JQ9baeNeFespth8kfSW/hmrRWj9RdQc9DAPaoW1tn5kKo+uYm ZMRvgsqSRNwHrerX82udHt+d9dHjTrnuOCMcKLsJECIyWUL6Ek5/ebobFLtortqvhDZ/R0sn4J0cI 2eKZ0ETECgjrpWphwKW7SQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSgPP-0004VA-5f; Thu, 16 Feb 2023 10:42:55 -0500 In-Reply-To: (message from Stefan Monnier on Thu, 16 Feb 2023 09:41:20 -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:303424 Archived-At: > From: Stefan Monnier > Cc: dgutov@yandex.ru, acm@muc.de, juri@linkov.net, casouri@gmail.com, > larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, > emacs-devel@gnu.org > Date: Thu, 16 Feb 2023 09:41:20 -0500 > > But with my patch, trying the modes is exactly the same (just `M-x > c-ts-mode`) and turning them on in their customization is no harder > (since `(c-ts-activate)` is no harder to type than `(require > 'c-ts-mode)` Sorry, I don't buy this argument. > we could also make it a global minor mode so it can be > done via Custom if it's considered important). This was considered already, but had its own issues. And we have ran out of time needed to look for better solutions. (I personally don't believe there are any that weren't already proposed.) > I spent a lot of time educating ELisp package maintainers about the need > to make sure that merely loading a file doesn't change Emacs's behavior, > and that `require` should basically never be needed in `.emacs` file. We'll have to make this one exception to the rule. The situation itself is exceptional and probably won't happen again soon, if ever. > Replace `C-h o` with `C-h f` and the same holds. So be it. (And restarting Emacs solves that as well.)