From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Fri, 17 Feb 2023 22:22:58 +0800 Message-ID: <87pma8l6bh.fsf@yahoo.com> References: <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> <83pmaaaicy.fsf@gnu.org> <87y1owl8eg.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 17 15:26:11 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 1pT1gg-00014O-W1 for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Feb 2023 15:26:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT1g6-0003Nq-Go; Fri, 17 Feb 2023 09:25:34 -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 1pT1g4-0003NR-KB for emacs-devel@gnu.org; Fri, 17 Feb 2023 09:25:32 -0500 Original-Received: from sonic309-47.consmr.mail.ne1.yahoo.com ([66.163.184.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pT1g2-0000j1-1V for emacs-devel@gnu.org; Fri, 17 Feb 2023 09:25:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676643926; bh=kHqpGUSwGc1fay/zg20vBHLUdGGBCk4IY5Wuyjf+L8M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=YbUKwd+VOTLUv/tCadtS8c4ykGRG4KQne84EoB34dJsruSjfE2kBj2YmgwpkUYOmSQ/sg1pbFBPOs1PbYuce5K5QC2p+0Bz1xTXXT3rz5FgEWvRDG3iIUgjHtEwGsc0F56oCzYaI7cMPD4tU0cgfIXJzVyZoY7FLybqSaNdqIVznKCRClAk0itLwsPElSzT7LddWTIID6lmTInovPCs+yA+UqIQ9yE4mQHGH6ynzJ26ZMvY4h0e/4SvMn7NctNHcMoXYjgeHcIVp64g0+kzMPqOJJWCWnOhZcGyU3m8GtpF23aVwltDebmrAVJqkqEhnOkdXsGlGIHNUbhDFMPAugA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676643926; bh=LNlkSUDaoTa8Z7ibcuzLYNZA5sjO4zWR1tord3FIRmi=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=HvCFQOTxX/mgBI4b8MUUPR2YyVXfEoLuampnERwxu0l6JSOAzzi4nhAKiUk/AStxnJ+4rvOO8wejv5ZWISsXhEXvYjPedrU2HOCtxC8TE92FS5417cTsNWYX0wc3ZpyyV+XcjXTJRdyFtR51bCIzqAcWYMU9Yn4gPHlqGWabym7mS5KJLUVGjot7M0yzPWybo+tItEvR6KkEr7qA8mg5HR8tbQNEhgQ7pPQHEN3IjkxBVpqkEccA5JLGYSR9sJEiuY4h6pUzCW5wyFnDAjCvbFO4pQJ8SlKZ0RNH+AOWl2aRtCxqbKnmA9sQ9JjAMT5Ph4ovmgStGrH5o7oQHCweng== X-YMail-OSG: 2UyoSj8VM1mOuVdil0Cg1iKLc2MWr5M2isvneZP..cJR9TR3SkPUYuV8HIzY2WD NQcOROOyyK7p5VZurwlSmh.Hh2uQp_2A8.YocVtH_RH.sWqYgcCDuaAfHdFY6dn03PmRUhkQdysK xA70Sa1dYr_IkIORn3.HfrpQomNjaPBhUJUxA6tW3rqdEZ57S9GTZ84xo7MvuEEIiAavldA.ILcw mLHGGQavGKwRUHS7q_LQ.s3tscqXPp8OTPcgEfyo2XpGinGXetrOAwPlB2y5DizkXncJZS3T2XDL uYL1UL7d6IpVMeKGFyM.j5U0HIk9eMBfKRIgrEGVsoF4sX9WlOY3NNCdPw.eNFSP_rC_nfZBdOUG 3W7olBh2ucG1JWWGDHfTcSYMVWyQbeRcpMDh7rbmhnj0_1.fRHH3kI2hvLOjk9dBzHIhRwao9AKd scupkmwv0sqKi2h_cJDinV7W1j7BX8FrH8gGS0vDpg9nfqDL9ikO947.GEG1fQ.Jhbx5Uqe28Mqd RdmqWmBpGiEXvdlkLPY7IMsGuQ05mrNl_q9WORb2OfJxCP2DWDDnbuw.oXIFOeIdMuwNDF6xxlog RZ8x7Im9HQSS7Kks9su7bmyteo3JJZOMvnC0PBlkjn3c.zCcdEYux.z0oJ.lpGbAco3cElASN.sv qzBKUWfNfis29azoKGmxfw2EFONY9UsvJeWTXEftfFq_qcGsYr8YGISaknyWxTbd0UKx63qQEKnM uZzDljRq5JLjxmOnnXpCi2D.Zxd5dcHrxW2yaApRLy8rXqTtOdqeo03f6Rbkn1nWAvXB1JiiM_zJ f_VrXd6Gjucn63gBCnaKYWqSe19oapatlvaoQUNH.m X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Fri, 17 Feb 2023 14:25:26 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-vmkgs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6ce48f0444f858ec0892d6daaccb9769; Fri, 17 Feb 2023 14:23:23 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Fri, 17 Feb 2023 15:56:14 +0200") X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.173; envelope-from=luangruo@yahoo.com; helo=sonic309-47.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:303487 Archived-At: (I copied the list back in since this is quite relevant to the thread.) Dmitry Gutov writes: > I understand there is an issue of a possible language barrier, but > isn't that something you could have found out in ten seconds by trying > it out? (require 'c-ts-mode) alters auto-mode-alist. But then it could've been a bug, not intentional behavior. > And about a month ago you called this "a very reasonable arrangement": > > https://lists.gnu.org/archive/html/emacs-devel/2023-01/msg00267.html > > Here's a couple of quotes from the message you responded to: > >> The proposed change to the current emacs-29 branch is below. You will >> see that where possible, just loading a TS mode modifies >> auto-mode-alist if the tree-sitter support for that mode is available, >> whereas for other modes auto-mode-alist is modified only when the mode >> is actually turned on successfully for the first time. > > ... > >> Modes that have >> their own *.el files can be just 'require'd in the init file to modify >> auto-mode-alist. At that time I thought in both paragraphs the `require' and ``loading'' parts referred to enabling the major mode itself, since there is no other reasonable behavior. I didn't even bother to ask about what I thought was a typo, since I wasn't expecting anyone to come up with any other behavior.