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.bugs Subject: bug#64487: 29.0.92; Another tree-sitter warning inside Custom Date: Mon, 26 Feb 2024 18:55:09 +0200 Message-ID: <544ebf3e-a11e-48e9-a380-33e3da52ab99@gutov.dev> References: <871qhlmssz.fsf.ref@yahoo.com> <871qhlmssz.fsf@yahoo.com> <83a5w9ieti.fsf@gnu.org> <5be41fcf-f728-4bd4-9cb6-41c751457ddb@gutov.dev> <86il2buq5h.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="25146"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 26 18:11:55 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1reeW9-0006Hk-CW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Feb 2024 18:11:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reeVA-0005QJ-2J; Mon, 26 Feb 2024 12:10:52 -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 1reeUv-0004yh-So for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 12:10:38 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reeUv-0002KA-KL for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 12:10:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reeVK-0001l1-FP for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 12:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Feb 2024 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64487 X-GNU-PR-Package: emacs Original-Received: via spool by 64487-submit@debbugs.gnu.org id=B64487.17089674186604 (code B ref 64487); Mon, 26 Feb 2024 17:11:02 +0000 Original-Received: (at 64487) by debbugs.gnu.org; 26 Feb 2024 17:10:18 +0000 Original-Received: from localhost ([127.0.0.1]:50072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeUb-0001iO-6k for submit@debbugs.gnu.org; Mon, 26 Feb 2024 12:10:18 -0500 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:43123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeGW-00012y-MX for 64487@debbugs.gnu.org; Mon, 26 Feb 2024 11:55:45 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 28E573200A40; Mon, 26 Feb 2024 11:55:13 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 26 Feb 2024 11:55:13 -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=fm3; t=1708966512; x=1709052912; bh=0tayYLyrr9PlAXJDrZGZ0u4bXDEx824AZtcNiVdMJ+Y=; b= I+kFIvNhyBruYHOSBk+XfoCPm/p6L/+PLu7wwSrYNNqBMMNA8VsAgfbjPUUU+Izs X4d8bH4kkMUY3Ud9BXsGv4JohUCVpIB36xbxFTFsFnhMMJwTJ9u51EbkcgSJm8B7 iV+Xh0WbVl0r6m8Spg1lILp1UdNejlMb+uBTrT/Y4LPiUKV6r7436xnImmpB1hoD H0Sfbf3aZGjoyFIlqrBl4wtuG6EW+YTLBCmnt8e+Q2eeiwpwds6voBnwLLAeuEE9 lw6nrUN9kgoSIbs01UBe/sjUKgB8iyQ+pqVLPRcPqQov8VOmmM6e5nGi76RIQPxJ U7Qe2belNZ1+dU3ZnVFVkg== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1708966512; x= 1709052912; bh=0tayYLyrr9PlAXJDrZGZ0u4bXDEx824AZtcNiVdMJ+Y=; b=V k25n6lrin7WsXJMnf1Jsqn/O/08Hbby3KcRoywknyVNcaVfyOvkPF2SgS6EcxmVf WXWhXBbHqg2+pTNIBtD+qAfsww61c6/vJZNNkv4IYYlq3dngF4C9iT2OLVNU9R6x 5bfrPRqDz81fGhyzUEIS6zhmTsoh0NEYLI1HELl4OgnYgUHnVPfhuNDWmBmuHwrR kU7QL8ERuI0qs8Vo4fNNYsRfubEHI+KpalOZLWowiqbD2jeqUkJgYOlom3XQXDpN VzoczmTEOwOP8lpRYK4ReHfgHkz1CT5DTIkh0+QOj+iFZecnfJ2+E4vrZBBDZmzQ FdOHyoiutpZzvKFjoWXGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedvgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Feb 2024 11:55:11 -0500 (EST) Content-Language: en-US In-Reply-To: <86il2buq5h.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280688 Archived-At: On 26/02/2024 18:49, Eli Zaretskii wrote: >> Date: Mon, 26 Feb 2024 18:25:33 +0200 >> Cc: 64487@debbugs.gnu.org >> From: Dmitry Gutov >> >> On 06/07/2023 12:12, Eli Zaretskii wrote: >>>> Date: Thu, 06 Jul 2023 14:56:44 +0800 >>>> From: Po Lu via "Bug reports for GNU Emacs, >>>> the Swiss army knife of text editors" >>>> >>>> Type M-x customize RET. Click Programming and then Languages. A >>>> *Warnings* buffer will be displayed containing the following message: >>>> >>>> Warning (treesit): Cannot activate tree-sitter, because language >>>> grammar for ruby is unavailable (not-found): (libtree-sitter-ruby >>>> libtree-sitter-ruby.0 libtree-sitter-ruby.0.0 libtree-sitter-ruby.so >>>> libtree-sitter-ruby.so.0 libtree-sitter-ruby.so.0.0) No such file or >>>> directory >>> >>> When you customize a group, Custom loads all the packages that belong >>> to the group. So in this case it loads ruby-ts-mode, and you get the >>> warning. >> >> Which was never a problem before when simply loading a package didn't >> alter auto-mode-alist. > > You want to start that old dispute again? I didn't expect you to > change your opinions, and you shouldn't expect me to change mine. So > why restart that? I remember you saying that it was a question which is settled until any other problems come up. Isn't this an example of such problem? >> Do I understand it right that performing the simple steps that Po Lu >> outlined would silently assign ruby-ts-mode to *.rb files? And a bunch >> of other such modes that get loaded as well. But only until the end of >> the session. > > Could be, I didn't try. If that's what happens, patches to avoid such > a long-lasting effect, without changing what happens when the package > is loaded outside of the Customize context, will be welcome. I don't have any solutions to suggest except holding to the principle that simply loading a package has as few side-effects as possible. Which would mean reverting your earlier decision.