From unknown Thu Jun 19 14:09:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64487 <64487@debbugs.gnu.org> To: bug#64487 <64487@debbugs.gnu.org> Subject: Status: 29.0.92; Another tree-sitter warning inside Custom Reply-To: bug#64487 <64487@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:09:36 +0000 retitle 64487 29.0.92; Another tree-sitter warning inside Custom reassign 64487 emacs submitter 64487 Po Lu severity 64487 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 06 02:57:03 2023 Received: (at submit) by debbugs.gnu.org; 6 Jul 2023 06:57:03 +0000 Received: from localhost ([127.0.0.1]:39418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHIvH-0003Iw-6M for submit@debbugs.gnu.org; Thu, 06 Jul 2023 02:57:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:57356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHIvF-0003Ip-SY for submit@debbugs.gnu.org; Thu, 06 Jul 2023 02:57:02 -0400 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 1qHIvE-0005I0-V6 for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 02:57:00 -0400 Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHIvC-0004oJ-QF for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 02:57:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688626616; bh=VtLEzNhWJ5P1m3lDAHYyo/eXtSS1s3Vei2tlW9/fcHA=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=CkjBKgFxZmJYCKpcgMC0T1QQhk1ci1jxKORsw+3Y6DrmIo5C6ovZrPC1tcfRmb4Z5FQwpSHIZJLVFuWVuFY+/2un9JZmP0lVBX5CDBEV9F2uua3TINGsXznwUh1DA3h/MyRJrJTxEnzveEW3wjNjljgc04g52Ua1w8WqQ88rI/MGDczR7zIw4LtF161nImtz2UF/iD44/AXaYKmthbNGM7WcmqgZchJt0E3FkT3DiWFJcYUSnAXwHNtWi5k2CKMR7G1+gutYzi85CjOA+v8B8SkSD+0ILyAX39O0FLh/XF5gTTLVHqSw56JlhKkWZEE/87CTBE9kuqFZP7wddZ1tMA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688626616; bh=0lbxbIyodRWjqkXoeJqObDxPZfFgpT2aISOABm64T4Z=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=HdtPuSuQnW0W7E3ME3AaudLoY4BEg/17ZSHVUdNmRDkti1zcL4mUfAOdhn7kgrNomEfosDHJ2QKkMKm+NIv0coBMhEDBp2hjVNPp2DsMxpVmbvwM3fwv2hSG7tQQxlhDePFpu+xIvercApjHUxKoVpVKAnbbxqNHNnbop3tT9VN5rIA3Q0Z6qV4e7x3OKscyqvnrgiO2LP2fR1NRQnqfRqoG0QHcyrg9TTyCSN8r0OZAyU9jfpc7dBKSCpW9a476LG6Tqg/PdmjR5W3QaEjE22Mu0WjoGLVUr7KV49s9ijNY5l5HInNb3VXdFH7NoKBxMPaxyusffIrFH1VPRLSsGA== X-YMail-OSG: h5Pi2OAVM1m_FG8ARgs6EW4c_r0AaJtGf1r_fYh6vfM1yvCFtsheUNakfeeskA4 Z3ArjvCc6PGTJZGEi4eAB8AEU70.gnCqLQdmnkWGCS38cRGVzwCHSzWtdk.1vlw9WRIVu1n8g2IH N.822zH9OgxTU0Sp3EYDj6X2y1d.z7ETr8OGnw57uoAxwDQbyhhzT4fNCc5dvc0TjKk_D3Amfv9k U8l_38b9_EQkPxNNLPgJJHY875ccjKZARSgk52RALtqYlBVDw54V3QBq7F3WlHPTrWAp5gFOLg6U Pj_3ogEu2yWQss1qW8CznAhwN1kCeSotVHC4aXduRXeV2MfPRkiVJQE1gopF2qjXwC60tFFRKjaD 75A8KS0d9veK7Hf6gmJSkJeoj46BhUKCQBWvIbxA76LUBbb7nRaIN2ajxQi_roJI_v_0T.qCNbuJ GjhB9M8IdnEto6l6u67gMptYh0X_Zn3HTIsIc20qkpg7ZOPiAj1ArlA273V53FMgZwAmwUsb9qxv 01q8moxTRm8XwAQPbBhwFSDwkA5oe4PwKErgLyEG6YdHtAGWDT4VHGlvv708UFjyBOMaTnpamv7X SjNCwjqAL1b_KqXHzEzaamh8N4T3UmkdsoF4DFP3ZW_rYzYgknxcUsOnVezdbbp31bupk86HuN06 3r76HEXqNCO_TCypMrs3Qz.1QjKhKEx5vLY_mFbZqltMppaQmY.P6NVASPpX0iRLmywNcIX9jjJK tZn3H6iFk9jOsBzianerE9wq4obenZZv16q7JFOJXNTRL_RN8DE00XVF24Ai5LE0UqxME1WkJvMB 06KOCXzer8DFSdLYctN3.E1WGgVvU7BNZuwnAP74ojGZg840En5AcX7DzKWke3.xn7oUjXuOATFu vH5L3mMDXca3a1zIzxHEIvRcJ.hcvbvbuySuMs_uNe0kVnMn2cTxj9nYI2tO7l4ILV0x7jBqEXz6 N_nE.5qrM4y4kIy9V0lmCexY87OlwFfNZ4g2lWzMEVqt8VL_u3cq12YuGTJtF5JRgiGsdPhKObIi LFMAgw.W5pkR1deX88KL63.tiTV1v_t3JlTqxDX8gIjXfth35FQplixpzOb9l_Fv.TxBse665UjY AyqD_g89CgZXUqJUd99ps39530S8FD_PivvxS.MfanPo7vkIEVtvtFikHg9gWxYUf4aAXIwZ38fl sCO0437RgtrQ3ciI_Z1Bz7b1DZWq4Sh15wmq8S48meiAbJVmVEB_vDJjhWNyEeUolQjXnZSx5G9u cES6YTIqxOGH8.eX3NQADI9ftkJJedJbzTKR8ERg_U8f0X1MZa0yrFdkx0eSjnuUGDoFC5sLo2ju caTsgytMLDOk4JHuqsgnqGa7h1lP6D7uN1y5_DGACe4kDcwNwVBC_ITW0jszTCdDxWlCHC6thf2d .ObzQz7odXLEYNud92NCP1ItNGKnIb8Y.zrmx1O3wwytzvzmZkkG7EmH7A3Z95aLhkdcsRePFsUh zpshAYhJ1mmtvcMdrw2W_f33t5H8XOlsSMA.UmH4l05rNJgEpz3rZpRDNQevjdFxOrWaUpTvT5y. 3aco19Vtl9tFFBVG88OuWdq6toR5UPdDwtv1yMQxh.qFoe9oCkxow7Oy6Rl8IdaZTBDX7JWRr0Y3 2ndEGEFxozDr5c4V2nmWIGG9z4Pu5W6qcQklEIVMokZjDywr_CJYWKIRDNj1W0TtBTD1Ckowvoak 7NVNz_Qayzl0GuetglorbHne.QvHkk3vxFnwLSYt3vBSixcFM5Nxg5WEA6NXo2oiIuSdjxc1hiAV ByHTy3iYYMqYkT8pYElzdJ0KP0GGfIfAn7yAr6DTngFZJXVU9r2SW2Gu3JpYG0AAH9AZPAQqXUhD cKUdIfG5lC1fXYvYciHF3.M.H3OWdGF7fwkFnp3DUF3UXHynxYHaKcuGbcNw47LLPc71ath4mIwX mhSmozBBrvSML..lmaZEhiwyN.YSXeB.eaOEE_f7ki2BHVeVRsAMlB8SDA_jchazGUNkMECmh0FI nExl4ebsb0GD4k8kCH5u2pEwyvdY.v0R6AAUhF9RBHKRn.arDSPBadRLaAc9L0KPMqzaShrd5x1L yHJpa6C3GYObM6TwFml8r1UupS3pk6u5uHysPbzJvNZCh407hKw3BvV19upwZnzzPH2X3xujCZh4 iGxvl2zFZDEAptadwslhbZzn9UGQvsd4HaIiYxbLCXNnObj9knvE1gNh.PwPTFGlCWyhkbxRgeh5 01sVrstRvTNzxHi0BI6Dpxny4qXAAroQj_B9ZrIidL_jw020HYQ-- X-Sonic-MF: X-Sonic-ID: 9795f1b8-55a2-4f6c-a503-ce1bc61d81aa Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 6 Jul 2023 06:56:56 +0000 Received: by hermes--production-sg3-67fd64777-lqw65 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0585ae71269401082c05be355570681d; Thu, 06 Jul 2023 06:56:50 +0000 (UTC) From: Po Lu To: bug-gnu-emacs@gnu.org Subject: 29.0.92; Another tree-sitter warning inside Custom Date: Thu, 06 Jul 2023 14:56:44 +0800 Message-ID: <871qhlmssz.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain References: <871qhlmssz.fsf.ref@yahoo.com> X-Mailer: WebService/1.1.21638 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1420 Received-SPF: pass client-ip=66.163.191.146; envelope-from=luangruo@yahoo.com; helo=sonic304-20.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) 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 Can't these messages only be displayed when a tree-sitter major mode is enabled, as opposed to whenever the file implementing the major mode is loaded? Thanks. In GNU Emacs 29.0.92 (build 1, x86_64-pc-linux-gnu) of 2023-06-25 built on trinity Windowing system distributor 'Sun Microsystems, Inc', version 11.0.6620 System Description: Fedora Linux 38 (Workstation Edition) Configured using: 'configure --with-x-toolkit=no --without-cairo --with-native-compilation=aot' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XDBE XFT XIM XINPUT2 XPM ZLIB Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Special From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 06 05:12:33 2023 Received: (at 64487) by debbugs.gnu.org; 6 Jul 2023 09:12:33 +0000 Received: from localhost ([127.0.0.1]:39583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHL2P-00078R-EG for submit@debbugs.gnu.org; Thu, 06 Jul 2023 05:12:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHL2N-00078E-NQ for 64487@debbugs.gnu.org; Thu, 06 Jul 2023 05:12:32 -0400 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 1qHL2I-0005GN-Fj; Thu, 06 Jul 2023 05:12:26 -0400 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=lRDdAhUp73v95xwcYkO29s2Emqsi+9IKCPKX/SzqOyM=; b=ZkaylRiD9kdE 8W4nXDjUlnhCpz1Jj7Q5xjkkz7O5cf4/z5wtymryr6iwfgEY6qEp8qA6UotcCjV82HbE4FW3vha9j gvQ3O3lhuIj8ays7ErCn+fgmclZ+rNTAQPWtGq+qDdwaQW4UpBoS001KPubOhg4km1ryaj6S/lt3l Iba4bmYgwZi6nAcPwAOaHsuZo5Z6i98tS3E4CCoSXIldRio/Eg5II1Ob+h0H8m3yYn5dBnnyxxr31 SIl8DZWcCgUhynaeuZXjvnewGUD3xThsdejyy3jRt34gyaGWJ/6GN24JJx1MY/6lNW1cwFeCaIktG UD4e6GJ2tELWf41lR5I7gA==; 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 1qHL2H-0005WT-UL; Thu, 06 Jul 2023 05:12:26 -0400 Date: Thu, 06 Jul 2023 12:12:25 +0300 Message-Id: <83a5w9ieti.fsf@gnu.org> From: Eli Zaretskii To: Po Lu In-Reply-To: <871qhlmssz.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom References: <871qhlmssz.fsf.ref@yahoo.com> <871qhlmssz.fsf@yahoo.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64487 Cc: 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. > Can't these messages only be displayed when a tree-sitter major mode is > enabled, as opposed to whenever the file implementing the major mode is > loaded? Emacs 29 deliberately checks for the grammar's availability when the package is loaded, to give users a prominent indication that the loaded package will not work. This won't change in Emacs 29, but maybe as part of rethinking this after releasing Emacs 29 we could improve the situation with customizing a group as well. Anyway, the warning is just a warning, and is otherwise harmless. It also only appears when Emacs has been built with tree-sitter, but the grammar libraries required by some *-ts-mode's are not installed. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 06:20:31 2024 Received: (at 64487) by debbugs.gnu.org; 26 Feb 2024 11:20:31 +0000 Received: from localhost ([127.0.0.1]:56177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reZ26-0003iW-Qt for submit@debbugs.gnu.org; Mon, 26 Feb 2024 06:20:31 -0500 Received: from mslow1.mail.gandi.net ([217.70.178.240]:38817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reZ23-0003iB-86 for 64487@debbugs.gnu.org; Mon, 26 Feb 2024 06:20:29 -0500 Received: from relay9-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::229]) by mslow1.mail.gandi.net (Postfix) with ESMTP id DBE38C22D7 for <64487@debbugs.gnu.org>; Mon, 26 Feb 2024 11:14:01 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 25B33FF804; Mon, 26 Feb 2024 11:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ice9.digital; s=gm1; t=1708946021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OjEyjCykawn4bEmLAjXRNtCzTFL0rszEiSR/X2UBIQQ=; b=GKBsBALMjmvngpTJqThHs6ou2omN/U9hETZCdRXVvppRzKI1rTJB2iprvm0Wxmx787xvVJ e1gFlG9cwLMnCr79lrV/hp2VTDSeFfaH4h1nIz+zetHbp17w7BKJslm1EgcusCjxkcRpVF fwLxmmEN2e0Woj20x7lkvTMhs4gY61hJpcFAwtTJ3ze0Tux+guUwIHFFAGsluEx6P6+nwq FAMrBj36+WIw4vevIu8KeU8Tbj3CFwWlmMnRqOi6cru5px7fOLQZE8hXXdZucLaG0vnZQk YsffeoNpUMGNKm+7X58cGIQStfOIC6BZUdT6pNf56yTiFqXeVsnvs09lb3En2Q== From: Morgan Willcock To: Eli Zaretskii Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom In-Reply-To: <83a5w9ieti.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Jul 2023 12:12:25 +0300") References: <871qhlmssz.fsf.ref@yahoo.com> <871qhlmssz.fsf@yahoo.com> <83a5w9ieti.fsf@gnu.org> Date: Mon, 26 Feb 2024 11:13:40 +0000 Message-ID: <86h6hvzdej.fsf@ice9.digital> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: morgan@ice9.digital X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: 64487 Cc: Po Lu , 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) Eli Zaretskii writes: >> 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. > >> Can't these messages only be displayed when a tree-sitter major mode is >> enabled, as opposed to whenever the file implementing the major mode is >> loaded? > > Emacs 29 deliberately checks for the grammar's availability when the > package is loaded, to give users a prominent indication that the > loaded package will not work. This won't change in Emacs 29, but > maybe as part of rethinking this after releasing Emacs 29 we could > improve the situation with customizing a group as well. > > Anyway, the warning is just a warning, and is otherwise harmless. It > also only appears when Emacs has been built with tree-sitter, but the > grammar libraries required by some *-ts-mode's are not installed. I don't think this situation will be particularly rare for people who choose to download the pre-built Windows binaries. And I imagine that people choosing to acquire and run the program this way (possibly because they do not know how to build the program themselves) would probably be confused as to why the "out-of-the-box" experience is generating warnings for features they are not actively trying to use. -- Morgan Willcock From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 12:08:29 2024 Received: (at 64487) by debbugs.gnu.org; 26 Feb 2024 17:08:30 +0000 Received: from localhost ([127.0.0.1]:49913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeSn-0001br-Ri for submit@debbugs.gnu.org; Mon, 26 Feb 2024 12:08:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeSm-0001b3-1d for 64487@debbugs.gnu.org; Mon, 26 Feb 2024 12:08:25 -0500 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 1reeNL-0000oe-Ds; Mon, 26 Feb 2024 12:02:47 -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=0SOQzTmXTtSvR62IiPnyxXxIUR/WMiEID5NYC/QE788=; b=iXQpaaO1bY7w pe425eZi+Am8GfJWGFdfeJPfjEiCMm7mWKUJit8WB22rewOiW3RxUcT1cCNrG7+Tye2rTSqrhOhdU F4VsiHL6o/4B3UnuhK/wipv9786X+oMHpSFEkrmc5Sr1/gYDtCzfGoemfkJDNPFHdp8qIP4WsVdnt 3L6TQ6j5T8EJ0DQg8D10pSMdIPq1LQ2jIrXKUhh88qXDLGQmm7YtTWv4rAQj5anICY7FhPyC6mAdq rGlRxXS34OMVGNLHveLROH+zQCsxzIYwYgsBP7pYu/jYPzkmFrEVM/vBZnwCMg6Jz6lu7Y8wv75r6 vIcaLVhTHDjbykCfcHpnbg==; Date: Mon, 26 Feb 2024 19:02:43 +0200 Message-Id: <86edczupjg.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <544ebf3e-a11e-48e9-a380-33e3da52ab99@gutov.dev> (message from Dmitry Gutov on Mon, 26 Feb 2024 18:55:09 +0200) Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom 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> <544ebf3e-a11e-48e9-a380-33e3da52ab99@gutov.dev> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64487 Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 26 Feb 2024 18:55:09 +0200 > Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org > From: Dmitry Gutov > > 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? No, I don't think so. It is a very special case, which is rarely a problem (only if the user decides eventually not to activate the mode). > >> 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. I don't see a reason for such radical solutions because of this use case. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 12:08:43 2024 Received: (at 64487) by debbugs.gnu.org; 26 Feb 2024 17:08:43 +0000 Received: from localhost ([127.0.0.1]:49940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeT4-0001cu-Sk for submit@debbugs.gnu.org; Mon, 26 Feb 2024 12:08:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeSo-0001b3-7Y for 64487@debbugs.gnu.org; Mon, 26 Feb 2024 12:08:41 -0500 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 1reeAX-0006G6-Kw; Mon, 26 Feb 2024 11:49:33 -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=QkW0yFCGnSBRufi0PkhHTxVS9mVXvQJKiqtu96kK3Sc=; b=S9/yXa1XjaLp H5qPXVLen9pkljrAGhJLPffswF1qdm1a8gVyvtErQVNXK1NoHZozbbgNI1Uq7b2C4yXWmkbwIhk4r uoCXyzgaICBN5sqTBJAcR86uujLjnHLjcTTe6RlWDfJZQu7JDIJ5hVzbEOahM7/agUTtML2+7e5tB gwoaqy7+kftKvCnxTOWR6WaDXi6JjXPdGdtpCqbFYwYRfz1vedqPnHMfrvXU4p4+2LPWZjCp1H1Ob y04hKC3TCLX/fxi6BZ/lWZWifE1adyWV8ue5ZJ6XDHsT7ogfZ7D3SARe613pr3FjhqHLrEKU+yaRr xMrVM8tcAM2MqwxcOKvnhg==; Date: Mon, 26 Feb 2024 18:49:30 +0200 Message-Id: <86il2buq5h.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <5be41fcf-f728-4bd4-9cb6-41c751457ddb@gutov.dev> (message from Dmitry Gutov on Mon, 26 Feb 2024 18:25:33 +0200) Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom References: <871qhlmssz.fsf.ref@yahoo.com> <871qhlmssz.fsf@yahoo.com> <83a5w9ieti.fsf@gnu.org> <5be41fcf-f728-4bd4-9cb6-41c751457ddb@gutov.dev> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64487 Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 12:10:18 2024 Received: (at 64487) by debbugs.gnu.org; 26 Feb 2024 17:10:18 +0000 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 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 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) 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 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Feb 2024 11:55:11 -0500 (EST) Message-ID: <544ebf3e-a11e-48e9-a380-33e3da52ab99@gutov.dev> Date: Mon, 26 Feb 2024 18:55:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom Content-Language: en-US To: Eli Zaretskii 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> From: Dmitry Gutov In-Reply-To: <86il2buq5h.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64487 Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 12:22:45 2024 Received: (at 64487) by debbugs.gnu.org; 26 Feb 2024 17:22:45 +0000 Received: from localhost ([127.0.0.1]:50839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reege-0002HB-Qb for submit@debbugs.gnu.org; Mon, 26 Feb 2024 12:22:45 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reegc-0002Gg-1R for 64487@debbugs.gnu.org; Mon, 26 Feb 2024 12:22:43 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 00811320077A; Mon, 26 Feb 2024 11:25:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 26 Feb 2024 11:25:37 -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=1708964736; x=1709051136; bh=PpvkKeuvd6GYVHTJS481jFo1vFB0IPpPDOAfYf4RFzM=; b= VrVt+/zGhXcOGOadCd+RCrMQ1FdH7midjMFwLDBhilCKr1SK+QO2AVTC/6KxaxhC qfwI6GxnlrOsiL2JPU5bB589iyltiNKr6Wq3VAQ9jmLvvZpEj5ol1XdQZrgrupKD LlUwotNtMMx8n0l/OhXVEYCehyQVjgs3pubPXoOb51k3AcuxtIPPz7gYWHSd6g7S zVpKrNvM9HlBOTSVLryaUb4TTNdVSQy7ZataXFcT64C3rm0y2gePvsXV+3+wfrPR Mnvz3sEEL4uZsakiwRKVYfTFqkjM5ein/SixqBaBp9oD8u895Xj55koZnqZervhG iZ9O6kTVKalzbdoBSz9fxA== 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=1708964736; x= 1709051136; bh=PpvkKeuvd6GYVHTJS481jFo1vFB0IPpPDOAfYf4RFzM=; b=f 275TTDB9vn3gRjBZI1BifNL0/cefGIlWMKDlsVhtzY8RF41iImTi2JV16/Y2oYYr tPa24XV3wOcdRzamy7bC61ce7APRA0RdUpPCW9vlNBjpbemU0IUah3PDJbppeizl HZIVgBKNfC6hsE1dkUeR7fZ4O30w3L0apYn+DWOGR14CIUQ3K9NzY+HJEacj3kG2 qu69jz+I2gdsIoIlZ1faaaxgDIWJJypWTtzk6D4gRDvbdSb4Onqy7+bIaAZGc7dq ZWp+WogQwi9zs5Mj+AH2euzinZlMn65vzRucDA7Q1kTahtCkXovzu1AExOYbYvkN +wCVqq6uiYw6MhX1L6y7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedvgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Feb 2024 11:25:35 -0500 (EST) Message-ID: <5be41fcf-f728-4bd4-9cb6-41c751457ddb@gutov.dev> Date: Mon, 26 Feb 2024 18:25:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom Content-Language: en-US To: Eli Zaretskii , Po Lu References: <871qhlmssz.fsf.ref@yahoo.com> <871qhlmssz.fsf@yahoo.com> <83a5w9ieti.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83a5w9ieti.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64487 Cc: 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. >> Can't these messages only be displayed when a tree-sitter major mode is >> enabled, as opposed to whenever the file implementing the major mode is >> loaded? > > Emacs 29 deliberately checks for the grammar's availability when the > package is loaded, to give users a prominent indication that the > loaded package will not work. This won't change in Emacs 29, but > maybe as part of rethinking this after releasing Emacs 29 we could > improve the situation with customizing a group as well. > > Anyway, the warning is just a warning, and is otherwise harmless. It > also only appears when Emacs has been built with tree-sitter, but the > grammar libraries required by some *-ts-mode's are not installed. Suppose the grammar is actually available. Perhaps the user had compiled it at some point, or perhaps it's installed system-wide due to another dependency. 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 23:24:21 2024 Received: (at 64487) by debbugs.gnu.org; 27 Feb 2024 04:24:21 +0000 Received: from localhost ([127.0.0.1]:43607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rep0r-0004VF-Ew for submit@debbugs.gnu.org; Mon, 26 Feb 2024 23:24:21 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rep0l-0004Ug-US for 64487@debbugs.gnu.org; Mon, 26 Feb 2024 23:24:16 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 13C785C009F; Mon, 26 Feb 2024 23:23:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 26 Feb 2024 23:23:41 -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=1709007821; x=1709094221; bh=/pXJYyItVDcxtT8T3r/RvKVOGVHbPDHr2yEBap2wBYc=; b= d9BkS6rZh7+nVWQzCEokQTSkspb93u/rnUgf3VdqCkzEyUm1XLHxYD2BxVPo//VE BMAGR6Ka7ZlI37FTPvb2DhiLvKKU722YLljUamfv5hbnCWkfhnNZNBxsp04gG9O4 7joyC4sr69Fu1dEt6ylJEzH9/TdwZSIHfYvHYlNRijx5qoEA9uNRMKlhQhza5u4L fMpJtdfL34yhJnS4SOFLzOmGsBQAnUdOOaBCVofpyPu+C2sJA/MB+2xQzr7gMyL4 Gjybc2r5bf6fB4N9JbqMKUWE1oDelvai/HDwG6UVGzjM9N4p+FEVVpMQq4nSZXRs JREqTi4d9h/RzkudjTgTXw== 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=1709007821; x= 1709094221; bh=/pXJYyItVDcxtT8T3r/RvKVOGVHbPDHr2yEBap2wBYc=; b=X YqqiTvhxs/5lrL4ZU8Ui+OMidLsRLvunKGZZygrvXbcqVZGMbSNJtzYxuCMBI8Rb pttajN3wNu69694cwB+Cq1OIznFUHwcncuCfscy6Ov5HA16Cyrfx7YGU+2NSPlsE 9htZlBjlxaF/ka2b4Gd9aSxmu3i+mzTv4iC4DegESYVqzgX1P3I1DV8CoTQEq4U2 5XyppCBkvkt+AQg5hQ635BsOC8O1DqrN3Q/uZrVN/nRgoXEa5q/fMRxlgysL10OM nd/VJQm8pD8UdnAC4LZ+Z6ljsRXSaqqSqjehYPdRHMalItoqyEGAHh0vNgOuRusx puUxBktDr0DD2niVQa67A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgeefgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Feb 2024 23:23:39 -0500 (EST) Message-ID: Date: Tue, 27 Feb 2024 06:23:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom Content-Language: en-US To: Eli Zaretskii 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> <544ebf3e-a11e-48e9-a380-33e3da52ab99@gutov.dev> <86edczupjg.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <86edczupjg.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64487 Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 26/02/2024 19:02, Eli Zaretskii wrote: >> Date: Mon, 26 Feb 2024 18:55:09 +0200 >> Cc:luangruo@yahoo.com,64487@debbugs.gnu.org >> From: Dmitry Gutov >> >> 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? > No, I don't think so. It is a very special case, which is rarely a > problem (only if the user decides eventually not to activate the > mode). Which mode, though? The sequence of actions does not pertain to any particular mode: it's just Customize -> Programming -> Languages. Going through these steps with 'emacs -Q' here, I got both a warning about the missing lua grammar (14 lines tall), and both ruby-ts-mode and elixir-ts-mode added to auto-mode-alist, which weren't there before. And then visiting the "C" node (which is not specific to the tree-sitter modes, to be clear -- it's mostly CC Mode variables), I get also c-ts-mode, c++-ts-mode and c-or-c++-ts-mode added there. There would be more modes added, but apparently some use groups with no parent defined (such as 'java' or 'json'), so they're not reachable from the general Customize interface. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 27 03:12:15 2024 Received: (at 64487) by debbugs.gnu.org; 27 Feb 2024 08:12:15 +0000 Received: from localhost ([127.0.0.1]:60598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1resZS-0007ab-84 for submit@debbugs.gnu.org; Tue, 27 Feb 2024 03:12:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1resZP-0007aA-0C for 64487@debbugs.gnu.org; Tue, 27 Feb 2024 03:12:12 -0500 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 1resYq-0000aY-OE; Tue, 27 Feb 2024 03:11:38 -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=3BTMrbWgh8/OZUkiP3WQ6FtRphbFXqe6Ft1sfLJsUQs=; b=D1tL2JgBs2ZF jPpTDiHBSaBotyhr0HfEG5ZMqHjIL3iHRxdOH+/NBme5MrvAgk8oY5AOuETt1Xb3Q5Vmns2eujYTF Tl3mzT/eUVGMu3Jkm9rpOOWyR9WKQKhhs4gAYPWHRn7McaFLq4WUX/ytnEeI+Yr06xve4xOllXFEU T1p9Ef1KA5GiAo5s0FgX5VB3KgblXm85Ow4ohk9hORJgWUM3hpid4qYOgTVOsKLx60wZHi30DVdAV igxbW23Slabz7ldpCZRPuRefA3v5TDlqlQ4oyfHYgu1ofca8bwniK5eT+xdlc8eEDfADTKorwokjM h/FHKhmCPU9CnZL1ZhT2LA==; Date: Tue, 27 Feb 2024 10:11:07 +0200 Message-Id: <865xyauy1w.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: (message from Dmitry Gutov on Tue, 27 Feb 2024 06:23:36 +0200) Subject: Re: bug#64487: 29.0.92; Another tree-sitter warning inside Custom 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> <544ebf3e-a11e-48e9-a380-33e3da52ab99@gutov.dev> <86edczupjg.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64487 Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 27 Feb 2024 06:23:36 +0200 > Cc: luangruo@yahoo.com, 64487@debbugs.gnu.org > From: Dmitry Gutov > > On 26/02/2024 19:02, Eli Zaretskii wrote: > >> Date: Mon, 26 Feb 2024 18:55:09 +0200 > >> Cc:luangruo@yahoo.com,64487@debbugs.gnu.org > >> From: Dmitry Gutov > >> > >> 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? > > No, I don't think so. It is a very special case, which is rarely a > > problem (only if the user decides eventually not to activate the > > mode). > > Which mode, though? The one(s) that are of interest for the user.