From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Wed, 15 Feb 2023 14:26:25 -0500 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14994"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Mackenzie , Eli Zaretskii , juri@linkov.net, casouri@gmail.com, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 15 20:27: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 1pSNRF-0003gG-0o for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Feb 2023 20:27:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNQJ-0008Mg-8J; Wed, 15 Feb 2023 14:26:35 -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 1pSNQH-0008Ie-8A for emacs-devel@gnu.org; Wed, 15 Feb 2023 14:26:33 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSNQF-0001vx-7F; Wed, 15 Feb 2023 14:26:32 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BB6F8442850; Wed, 15 Feb 2023 14:26:28 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 20B6344284D; Wed, 15 Feb 2023 14:26:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1676489187; bh=udiNfXPz/68hVGx2R4MfmKb+gJHotdDfT5qMsMnYfME=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DSZFNPhLztBr8QEuw0xal07HEI6kWfWsRuZ4TtLU2Dm1q0c9+aLRkz9PmY7l5ztsd 6sZBO8BIjOQTFVEaM3koB73CDH7NqQNxZ+H5fDXtAOED5ZQ0vaZEpR6OXpUKT9F4at TSl1PEhlR7kqMc7+X5OCdMHyKpTUSo7t6vamyMl4RXEHHQNWkvVun2L2oVzJqb33OM r89ku4hPUrgW3sgHjoSP3OFYIXwClVUhvdwappiRC4Cp5QvmMMadOAWY6jBXzsBzHC OjZv/Tpek/mLcSjrPlErDU1JIvJx/obkj1xIRygwHJqrUoRBkWIFVAmC18sKASfuBG JOtNVyk2S+peQ== Original-Received: from pastel (104-222-113-2.cpe.teksavvy.com [104.222.113.2]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D03CD1231A8; Wed, 15 Feb 2023 14:26:26 -0500 (EST) In-Reply-To: <7bad77ae-a176-d49b-5115-dbadf7e6d1bc@yandex.ru> (Dmitry Gutov's message of "Wed, 15 Feb 2023 21:01:27 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:303330 Archived-At: >>> out again is unreasonably difficult. Even restarting Emacs (which to me >>> is a drastic operation) won't opt out if there are still buffers in >>> c-ts-mode in the desktop. >> Sounds like a bug, indeed. >> The `add-to-list` should not happen just because `c-ts-mode` is loaded. >> I think it should only happen if `c-ts-mode` is called explicitly >> (i.e. interactively). > > That would make this disruptive behavior even less useful, though, because > one of the suggested ways to use it was to add (require 'c-ts-mode) to the > user's init script -- to have the auto-mode-alist settings applied. We should never recommend (require ) as a way to change Emacs's behavior, since it directly conflicts with our convention that loading a file should not significantly alter Emacs's behavior. OTOH we can expose&preload `c-ts--activate` and tell users to use (cs-ts-activate) in their `.emacs` (or use another name for it, of course). Stefan