From unknown Wed Jun 18 23:07:13 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#60559 <60559@debbugs.gnu.org> To: bug#60559 <60559@debbugs.gnu.org> Subject: Status: 29.0.60; "Cannot activate tree-sitter" spam Reply-To: bug#60559 <60559@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:07:13 +0000 retitle 60559 29.0.60; "Cannot activate tree-sitter" spam reassign 60559 emacs submitter 60559 Eric Gillespie severity 60559 normal tag 60559 notabug wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 12:27:51 2023 Received: (at submit) by debbugs.gnu.org; 4 Jan 2023 17:27:52 +0000 Received: from localhost ([127.0.0.1]:49497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD7YM-0002Bs-O6 for submit@debbugs.gnu.org; Wed, 04 Jan 2023 12:27:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:45552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD54Y-0005yo-Ik for submit@debbugs.gnu.org; Wed, 04 Jan 2023 09:48:55 -0500 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 1pD54Y-0001Q0-7H for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:48:54 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pD54V-0005C1-3D for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:48:53 -0500 Received: (Authenticated sender: epg@pretzelnet.org) by mail.gandi.net (Postfix) with ESMTPSA id 0570E60005; Wed, 4 Jan 2023 14:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pretzelnet.org; s=gm1; t=1672843726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=fycvvLjQET9XjAivkBANKloXqZMIBFLN3RtjelwwMwk=; b=hUM0LHv/Uj6iTWWdzZpY12b262afFIQIbuMJpQpg3FtgU8TgWJf/4z/yFMcZVyunbrBhHs fvYtuixoSGT2CgC5Zgawmb7j2UrInh3z8hl960jiC01NM2ueA6lz/TNGYll77InPjV+Vbw rPMVTRlP0FWKaO3j0lwHR1II2nPZQtvCthYeGiogY8V1fnxguXE1EhR8DWDTzTReDAPtx5 x2SsJ4dvArjM/03ZmkljfIewBSsP27Icxe3xIpmgAh1MVXow20XPrO0hFV94QpWULl/Yrq vjntOV42B5n1FV2164r5NKhE9O3dvaZ55jEG4a8jGwlt+jORpbvPB4un/MZUWA== From: Eric Gillespie To: bug-gnu-emacs@gnu.org Subject: 29.0.60; "Cannot activate tree-sitter" spam X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 28.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <84972.1672843723.1@hassadar.pretzelnet.org> Date: Wed, 04 Jan 2023 08:48:43 -0600 Message-ID: <84973.1672843723@hassadar.pretzelnet.org> Received-SPF: pass client-ip=217.70.183.195; envelope-from=epg@pretzelnet.org; helo=relay3-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 04 Jan 2023 12:27:50 -0500 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: -2.6 (--) 1. emacs -Q Cargo.toml 2. emacs -Q Dockerfile Expected results: Files opened without fanfare, as emacs always faithfully did for me these last 25 years. Actual results: In both cases, a *Warnings* buffer pops up noisily occupying half the screen and showing a bright red emoji saying: Warning (treesit): Cannot activate tree-sitter, because tree-sitter library is not compiled with Emacs In GNU Emacs 29.0.60 (build 5, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) of 2023-01-03 built on dogato Repository revision: da69f116bfc37d28942ca6d35eaff978e6805bac Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: openSUSE Leap 15.4 Configured using: 'configure -C --prefix=/home/epg/.local --disable-silent-rules --without-libsystemd --without-xft --without-m17n-flt --without-toolkit-scroll-bars --without-gpm --without-dbus --without-gsettings --without-selinux --without-compress-install --with-x CC=gcc-11' Configured features: CAIRO FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF WEBP X11 XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Dockerfile Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dockerfile-ts-mode vc-git diff-mode easy-mmode vc-dispatcher warnings icons toml-ts-mode treesit cl-seq cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify dynamic-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 45439 9825) (symbols 48 5990 0) (strings 32 17025 1792) (string-bytes 1 480690) (vectors 16 11015) (vector-slots 8 167209 16484) (floats 8 28 39) (intervals 56 302 0) (buffers 976 13)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 13:36:11 2023 Received: (at 60559) by debbugs.gnu.org; 4 Jan 2023 18:36:11 +0000 Received: from localhost ([127.0.0.1]:49584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD8cU-0004Bo-QZ for submit@debbugs.gnu.org; Wed, 04 Jan 2023 13:36:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD8cT-0004BR-4I; Wed, 04 Jan 2023 13:36:09 -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 1pD8cN-0002QC-5f; Wed, 04 Jan 2023 13:36:03 -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=WsYxOg/NEWRmH3B/+i7H5380kBoGo0ngZYy5FhNYrRg=; b=kDNn6qZ0kT7W MLEt93HnwyAvBprZlKuMjw05y5KjvBYMX/MQGgbS0szp4wnrSt/TN67Gttkpx34BYejIHYDsib2Bd OWpYm+4Zb32hkuHUZnBQMfTTmvJL5bzM0t7fWcxVKsvXiX4Pr2d3lVk5Kxt8bCI69EwN8D8C69dsg RJQu0pY24dIhqIfDz4JxVwIZXFegZ8kp8atTKP8RcOMa3eHRW3YoS+FEVeOed85boh7gPm+fM6/3v tFlEuYMKoib0Lk4t1aUi4ZEu5d70gqf/kDyNhaVvYP+m1r0P8R2yYTaugrdQ5t7G5e7gHkrffpDOT fLlk/5nFzhp9gMQRdyiYPQ==; 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 1pD8cM-0003uI-EC; Wed, 04 Jan 2023 13:36:02 -0500 Date: Wed, 04 Jan 2023 20:36:15 +0200 Message-Id: <83wn62xi3k.fsf@gnu.org> From: Eli Zaretskii To: Eric Gillespie In-Reply-To: <84973.1672843723@hassadar.pretzelnet.org> (message from Eric Gillespie on Wed, 04 Jan 2023 08:48:43 -0600) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: 60559@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 (---) tags 60559 notabug wontfix thanks > From: Eric Gillespie > Date: Wed, 04 Jan 2023 08:48:43 -0600 > > 1. emacs -Q Cargo.toml > 2. emacs -Q Dockerfile > > Expected results: > Files opened without fanfare, as emacs always faithfully did for me > these last 25 years. > > Actual results: > In both cases, a *Warnings* buffer pops up noisily occupying half the > screen and showing a bright red emoji saying: > > Warning (treesit): Cannot activate tree-sitter, because > tree-sitter library is not compiled with Emacs This is not a bug. Emacs 29 comes with major modes for TOML files and for Dockerfiles, and those new major modes require that you build Emacs with the tree-sitter library (and install the corresponding parser grammar libraries). If you don't want to do that, you can instead customize auto-mode-alist to make Emacs use Fundamental mode (or any other mode you like) for these two file types. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 14:40:35 2023 Received: (at 60559) by debbugs.gnu.org; 4 Jan 2023 19:40:35 +0000 Received: from localhost ([127.0.0.1]:49647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD9cp-0008Bc-7A for submit@debbugs.gnu.org; Wed, 04 Jan 2023 14:40:35 -0500 Received: from sonic301-22.consmr.mail.ir2.yahoo.com ([77.238.176.99]:36194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD9cn-0008BM-Td for 60559@debbugs.gnu.org; Wed, 04 Jan 2023 14:40:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1672861227; bh=EQ4whL4QgGhNkUqxoM7fHVueg95Sfz83zPgRaBTp+BM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=a9kZwaEwv039OlFQwX2G18hP6XmOtNQrOh5Tey6yqgUkPaV8d+eA+CPOe7S6IiZo5oPERUP8Iv5fP+2rMBUENQOVE2P7jtHk6FqfDQjiYfQ2fDowo9z/z2bwiCCZ8x0lJXU5nG0enuWgd965Z+eQkAvycFa2mD5nhR2RcOxQImOgzX+QjlybIlPgxFFgC8rhwR8uiEm2+9xIQndW5JlP4yY2XZY/tU4raOOu7jNsvqARIYleJDoxMAfOq8quBH9tMNTRenkmS+ICCFOpZnaJlZbm+Z5TprNGNBpLEuNbwJL8DygCzbNyj/VG8Da0LqrsnJhqwP9jO9dqncbdzD/JMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672861227; bh=4/knaV+Vvf1ydfSLc0PVildAVwPjxYlBYlHH3cLkCu0=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=jlZpjJKtuY36/rtshU/SZQGupHm36iNkH4R6V60OGZFiJ07y7jzOhR4DNXaP20qlhLAfMCmelCZioR4/u64B7r/8LoLXxf3ejv5aqsgtv1nEiWW9ozMyrYwMQl2NP/8c1h/X58sFrpKKtEmlTMYhQ2k6afACN0mBwqFADDv0R7YOZm0IdxRf9Fqbbb0HzjK+ZJi7chyBqrrgcRpjvPSIh+HXyajjgHpKv6rDfE7HDv6Tv7A4F3IQ/1RX876X9cdPALWKxpKuC5nQ3L69pb/RvAhlTLYVctm+V3CxjQCzbvg7BhfE7ukO5j6jE0ksM/O6VQJwD8SV4sGK12TJTIsbVw== X-YMail-OSG: SIJfkNoVM1m_3kbBnx_X7a7j6AatNmekHf6_Q7zN6d1nW5BJgzxwV2dy9AP_WoN UkcK3S6EfN_LhSrjmwKaeBYQlCQH.Fv0sPclWxdenPeivV6Qparnw8zK0Ql1i4Bu7jAraOOYvccp 4LLGC7tFPQjoMdLkF4jqccWFNYuJU3RuZrS9mHnUIoXPYml1zH84EpoGgOjApEf3LwN.jmbQRnUz rW6MGSNxzlO4AyGEVi2ucyHckWo4OkrQNjFf7VkHCQaJ_w8hgkQNRgunIEyBmYX8UYS0QdanqlWg gFiL4NSsK20SCQbuJJ6xOGvSaGoUS3gIR8EXmqVQSlWdn_uTUqzLIBgCelFqttOBjh1t14CLMg_N ZKFr5x11WqxlGcbIG5JsXYZql5Fn3Qc7R66b9e0g9W7O.ZnEknEucXhM3vrEUWgZB1s9D5UtCG.O eJWXrlew2wads8pKCSQ9SosK1q9T0zttez7uo4bbahHG7wciI40RDfEi7CrL2sgy66KnCQSajILs CzlxrgMMeZe7jYb7cEguQYEaLqTKEFwBaXYPrTz10pFx7tb6u3ueOR.C8EaGLZCN0YWHgMT76Y5Q 7X4RPVJdIlcFqXUFLsEq1RfGQMc_fn3E8i4Qk6BMfY8Cbio0z2Xg0zAGFTS60aY2ONWQ70pNJdz7 eeRh8fj56wQ6u028FefZAubRMdwiUeCaPP5HYIh_hd4SMo21A2W3Cnw_OXS.I3leyLdLDDdsf6f5 knxw5lcqoLULN8xhdBrKoFBs86CJUJQBe93fjQa_rT8xdDRzUTmOpJxJEem2DxMOPf8vAXCdoLrq kSChbubfnTQ4UwhuqLmUXbDiG0gxRTS9NJgiwtaqQyJwe5vt7dXJYwguHOnlkwLyxYw0hAM9xpGI X.n6zzhq3OouzCWMVUV5oeFfYimVAk7G39rmcuuKxhdVvC2Yv6l8ds.exnr166Z.R_OmzeWQ..LQ 8UL08ei_s3T32E7AAFRX.cPBMFup4_1vaGV2SDo9Hos.abtuaEQiGIps051jfm6J96F2qUtBZHtZ ONB0M5cXr49V68gdfrSVXclExNgHGik6b9pqzZ9u8ZObKnSq8xDMNN6W9GcnjhhnH8VTSZ7Ir2yY oh1FbYobfkA.6kCX2sg1LXlw7B6Ejo1wAPzQthARRdyIRS8HfmOJRa8Ynhu8XGM.F79SQST.rr3U 5.kaA1lebAXKTwnV4AR6wqqb_bkLFhXjHUz7ii1JY9kbAhl_USlUdGM_sldknDE9AMDjT5BnoIL5 QTiZ0yVy_fwZ.dtGm3D6EkBgCtlaOIz.wEWvVH2DaBexnZM9vC00Yp5TOZziqlQnQ1BqGgQ_er9S WAaw0.eemquUsMJwpiPVpSlJvm2ptd1BRT8hDyh6niCHG5XvMfAkIi2PYVQhLSm1n8McGY6kisr9 KbCRd7mPAaxgT3Nv602NiNRu9cWznfiyOz3Wq3JXCBiSQpdZMJ7dLd48kr.Ppsee6kAiOBa3pvQ0 9cOe4fS2FubCSraK0zivuOh6DHVJ.6xksv6Ff0FUn1HBaEh7oOAUn0NeCHNoKUdBFPPe6mgzJzyH hZYLxcxv3cyxL5C7LGGRH6PuZ3WvvLo60oyzajGKZfcDrOxO3oMB48Gym3KctjqMPWHrHpdZtscV Fc3R3wkP7uw1KNkbEis_ZRFSnWjpWIt8FlPeDmRZHnaueEPN9rOsjZuDCfVPCQYmMVwVj.Q1CxrQ Oa0zLsnYebiakyx_aemm2gH.qsQnHxC75cBzdq_uh.DFwxDAHG2l93cXn2dNR4V8JduJP.CPvkEu PijYB4bX7Im6oG5IMRP8uEDZdsQhzzuZRVHFSIEwREz3ci9vKmTjxd98VkHB55D4Ums_Ag7Ci5m5 u9y4DyLmnTx.qwjPZAnfyBE_.AAD7eCcyHKq91ekozfW8oOYLWKUi5JwD2L1zfgmyPSOHMYv53b0 1tD6Qdxvc1tzzLqsJqv917fWGiRnlmYdKROKTawsY_XG6a1KAh36NA.zIoEf9MyINjCrcQCR6i3N Q0n0HjKvx3yEDpV6TO9Im1cNGAJIIr18cA42k8XLq7csrVMrzBL_MY_7mm6qjwBHeRUuz.Dr3LK1 WJWrQBGCcnOIR7NNs3BbW9GDgBQCVha_9tjCvFR_k30Ge4nxqMVi3sbxexU9g9VnyuvL3WGkw039 lxj_m8ZrvHkrpxh7UITar4aC1nhT3tylG9LsJP3hWc8Ou8TnVORvNMJ2k_dsbDwY3N04KrIBCPtW aY8L8zWsUT0NcxrDUAuczMO.0uhyzbugjQTE3qUNNzjs- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ir2.yahoo.com with HTTP; Wed, 4 Jan 2023 19:40:27 +0000 Received: by hermes--production-ir2-5795fc58c8-hft2t (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c2b1f906f31f7ab562e89695a4d6662d; Wed, 04 Jan 2023 19:40:25 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> Date: Wed, 04 Jan 2023 20:40:24 +0100 In-Reply-To: <83wn62xi3k.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Jan 2023 20:36:15 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1044 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, Eric Gillespie 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.7 (/) Eli Zaretskii writes: > > This is not a bug. Emacs 29 comes with major modes for TOML files and > for Dockerfiles, and those new major modes require that you build > Emacs with the tree-sitter library (and install the corresponding > parser grammar libraries). If you don't want to do that, you can > instead customize auto-mode-alist to make Emacs use Fundamental mode > (or any other mode you like) for these two file types. Isn't this another manifestation of what's being discussed in bug#60511? I also think that treesit-ready-p should not emit a warning by default, it's too noisy and confusing for people that don't know about Tree-sitter and consequently use a build of Emacs 29 without Tree-sitter enabled. Also, it's strange that, even if Tree-sitter is not configured at all, a major mode whose description mentions Tree-sitter is apparently loaded. The user will naturally doubt if the major mode works at all or not. IMHO, Tree-sitter-only modes should not change the major mode if treesit-ready-p returns nil. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 14:59:13 2023 Received: (at 60559) by debbugs.gnu.org; 4 Jan 2023 19:59:13 +0000 Received: from localhost ([127.0.0.1]:49678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD9ur-0000Go-B2 for submit@debbugs.gnu.org; Wed, 04 Jan 2023 14:59:13 -0500 Received: from mout.gmx.net ([212.227.17.22]:35951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD9up-0000GZ-IV for 60559@debbugs.gnu.org; Wed, 04 Jan 2023 14:59:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1672862345; bh=F0iso0kaMvH/HzXXk9Ua+WuHxKlDgFdrOfn1FQJWc4w=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=DvEq09AVrsoFZCF5qBjdEB/l3tUishCguL5HK00JY2O3yw3eaAc3TE6yN/rmxZQbX B6lu4KC/jXw3MuurAVbO8KV/fd4/DMiV6xiIBs2EOOgpV1Mhr9IQLwFanZ1zAf8qhW gdmx8ipxEmTAx5iUxkN5vop0xfB6ypoCusLm+Kcch5ZLx66fUGc5LzHkmeWWHieZlX w3+4LBHvvNnudckKD4JDnCgPU0JWDEFWR57AHDILyCwPDMlGqx0EDDVgJyUJ8Cr0d6 bxzX68crQ8rxQGLFLanktDFTmC+6i3Gbah5WhjUqPV1DHAqZew0mLxkRA4rf6euEH1 +B469Xq0uW4lA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfs ([89.246.38.149]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9Fnj-1p7v7m0gpL-006S68; Wed, 04 Jan 2023 20:59:05 +0100 From: Stephen Berman To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83wn62xi3k.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Jan 2023 20:36:15 +0200") References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> Date: Wed, 04 Jan 2023 20:59:04 +0100 Message-ID: <877cy2841j.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:gh6f5yjyqAY80WtIXxyP/OXtNAdqDUdfrRHD/2mPUxkIToEOCJz 4a+f4q30gj3QlbDtIgPp43poB2gsVy/WToLIjvIutJ5h0BWOl3312iMFu1VTZJnZB+fdPS8 XuqlQVMjpf2QBXzEtz5HHDGTjEzmsbf9p5mQC5tOG0dmXd/e0917mujDlfpSIA0DyhKoiwu K3hNuT+sb3AeWnKxvbxOQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:x/ND8OKagpU=;p9eZXY6yPXMHRGVAFc35bjj/umI xAwMrQnHTIAOSzxQNGx5cQNgSejJdjehnME3eAq7fs8ZQ7MY6zItPIFNjVdXcOQJHpNXAW9Oc C06N2MVf8eHUBRTsiQhpGaNfEPEbJ8Zvvpi2zSaMWrwGw1n8ZN1oTqA0D2lzz4vlmVvocXt/Q dCu/Ho47iRe4RCiKdEWeB/XQQObWGXPNxYdB124/HnkxNGRtHsI6P+VCSKuCWlhTZQtFOr6ZD +nleEdWeZHf9bfQWLwKPNnIJ/w21CPPCuALadO4D0AiQEKmoMiLhMj209oW4qMF4z0Qn7TDIM /JpBhikE3vMxqNSaUnicobj0xry1pNsVhnbQQ5WDK8JnvBy+lAmVqhq8peyVHp9ryshC5rUj8 lhgkt2i85w968UgvOP9UUirXhLQVm3emiUpRnGBrxfNVuIHEnIlzyzX6wQuMNcNEoQy5gaB71 weFC76Gg2ZcK7HnegNI12eh/kSYq/9j8PlM8CCwZJwU8wApqtsIHCP0P5eKSV8Cx8LhgupUay Cx0ecjx+ZZL8n4Dn+bsQvmc8DhnS9ibOZ3NYEhAF4saC50IWX/I+vkdCOuIWeIVwZK/hWEkZp TwAi8fSavKsWYdA7+hIfGYn9sbsTLTuAfdA0kYMarOWJj3IRZwTKEzj81E9nOq5f1AN2JPqjJ J5y2ZmHAp2pcCxOFt+Lqa0XDxG1VVEJaMQR70Bk+mvG+eB08AFX/e8U2an4btwksTk5gSkuGA WHX+M09YSaH+IAEpQVSKsJEYXtjeuYtJ9PUv5jmbanF5pY4L5nZi0lMN4s6AlBuwJi8PYf4zX RFgRSHniojvqoxLw+TrbllHOzBl5qtl5aUnuJ/fQ0wT/y+SZOYjgwvH6A/A9/Pr3l/bYX3fWD SgOKyUKPF46KEWaQwk0zax4hsg3OqJ+OxjGWnRPj0kDwUnH7A3lj5cnXDPba9xpxpGyz17DNM XMAarlSd6PAnHPAvlTk1WZW4b9k= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, Eric Gillespie 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 Wed, 04 Jan 2023 20:36:15 +0200 Eli Zaretskii wrote: > tags 60559 notabug wontfix > thanks > >> From: Eric Gillespie >> Date: Wed, 04 Jan 2023 08:48:43 -0600 >> >> 1. emacs -Q Cargo.toml >> 2. emacs -Q Dockerfile >> >> Expected results: >> Files opened without fanfare, as emacs always faithfully did for me >> these last 25 years. >> >> Actual results: >> In both cases, a *Warnings* buffer pops up noisily occupying half the >> screen and showing a bright red emoji saying: >> >> Warning (treesit): Cannot activate tree-sitter, because >> tree-sitter library is not compiled with Emacs > > This is not a bug. Emacs 29 comes with major modes for TOML files and > for Dockerfiles, and those new major modes require that you build > Emacs with the tree-sitter library (and install the corresponding > parser grammar libraries). If you don't want to do that, you can > instead customize auto-mode-alist to make Emacs use Fundamental mode > (or any other mode you like) for these two file types. Emacs 28 already has conf-toml-mode for TOML files, so shouldn't toml-ts-mode be handled like e.g. c-ts-mode instead of being added to auto-mode-alist? (The default value of that variable in Emacs 29 still contains an entry for conf-toml-mode, lower down than the entry for toml-ts-mode.) Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 15:03:08 2023 Received: (at 60559) by debbugs.gnu.org; 4 Jan 2023 20:03:08 +0000 Received: from localhost ([127.0.0.1]:49683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD9yd-0002gD-VS for submit@debbugs.gnu.org; Wed, 04 Jan 2023 15:03:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD9yc-0002fj-0i for 60559@debbugs.gnu.org; Wed, 04 Jan 2023 15:03:06 -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 1pD9yW-0003L5-34; Wed, 04 Jan 2023 15:03:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2Ov/8B2w3SViDiNCOTeIAoMYZ4v8W3AbTctH6LopXkQ=; b=RikCwavhZ0CvImFV2Fkw XoiUIKirZFZfpWyBpaJzPjYeMhPuusFcnT3oScnqEaLw+vDT7FVGjj3sjUjSgX14u7DHGZk4wQ/Ay gJE4mqabitwr1hGP524qm0BDiJ2jV4MaEq/PPFfw9HTJYxJJTPSqAa5nc2/wEE1FtS9kkHH8vA8B8 pnnHXuuLSZsJp+wov8p/xoF3wbINEAGz2tG1rK14F2KolQuSHcH8fVxIS6m6783iyGBy8+Skx98tg g4XQ/3paCDeYg2R9FGA/7MmFFOCLEx0K2NO6fS2kHV3NiKU6CWCahHr/Jey+A3wzDQqXinBc6Yt7e qTWES0yjgU1VZw==; 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 1pD9yV-0005LN-I5; Wed, 04 Jan 2023 15:02:59 -0500 Date: Wed, 04 Jan 2023 22:03:12 +0200 Message-Id: <83o7rexe2n.fsf@gnu.org> From: Eli Zaretskii To: Daniel =?iso-8859-1?Q?Mart=EDn?= In-Reply-To: (message from Daniel =?iso-8859-1?Q?Mart=EDn?= on Wed, 04 Jan 2023 20:40:24 +0100) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.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 (---) > From: Daniel Martín > Cc: Eric Gillespie , 60559@debbugs.gnu.org > Date: Wed, 04 Jan 2023 20:40:24 +0100 > > Eli Zaretskii writes: > > > > > This is not a bug. Emacs 29 comes with major modes for TOML files and > > for Dockerfiles, and those new major modes require that you build > > Emacs with the tree-sitter library (and install the corresponding > > parser grammar libraries). If you don't want to do that, you can > > instead customize auto-mode-alist to make Emacs use Fundamental mode > > (or any other mode you like) for these two file types. > > Isn't this another manifestation of what's being discussed in bug#60511? > I also think that treesit-ready-p should not emit a warning by default, > it's too noisy and confusing for people that don't know about > Tree-sitter and consequently use a build of Emacs 29 without Tree-sitter > enabled. That is one use case. The other, no less important one, is when the user thinks his/her Emacs is built with tree-sitter and has the relevant stuff installed, whereas the reality is different. Silently doing nothing in that case is hardly TRT. So if we want to solve this, we need to find a solution that fits both of these use cases. > Also, it's strange that, even if Tree-sitter is not configured at all, a > major mode whose description mentions Tree-sitter is apparently loaded. I don't find it strange at all. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 15:10:44 2023 Received: (at 60559) by debbugs.gnu.org; 4 Jan 2023 20:10:44 +0000 Received: from localhost ([127.0.0.1]:49705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDA60-0002rb-Ij for submit@debbugs.gnu.org; Wed, 04 Jan 2023 15:10:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDA5y-0002rM-19 for 60559@debbugs.gnu.org; Wed, 04 Jan 2023 15:10:42 -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 1pDA5s-0005y7-Eg; Wed, 04 Jan 2023 15:10:36 -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=JePy7zFRy2Qift4eCYldQmP5u++F/WesJQRVlGpJuJM=; b=EpsngEdCqh1D 9MyBPisbvwHp6uJWwRCELGlc37IH1eMapKyCbCW7CvwYLbp6CVJoH5Xxck3FZGGmoHmD1WosmnlYF Ogrmsv/VIEfpd3syw2BwrBNbgfafWJWR+bspu0rfQAx1jKES59imZVwbkx+TKr6e8T2Pk5y0myXg8 2IClvQY5pWc7tIBCjYiQYdflqAIJs/cb6jrG1FrN3Jw61XXUTncGeV/wbOoWNeXz1lfrR2ddTecor KJYmXA154LqST2VZUmyc0bkMKXbsuu2Nq7xE1CEquH5unT4g3KhBjXN6mENZMlRbbw5PA0XiMLG22 u4S+TArfxdMfr0NUjpZmNw==; 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 1pDA5q-0005u5-DY; Wed, 04 Jan 2023 15:10:36 -0500 Date: Wed, 04 Jan 2023 22:10:47 +0200 Message-Id: <83mt6yxdq0.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-Reply-To: <877cy2841j.fsf@gmx.net> (message from Stephen Berman on Wed, 04 Jan 2023 20:59:04 +0100) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.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 (---) > From: Stephen Berman > Cc: Eric Gillespie , 60559@debbugs.gnu.org > Date: Wed, 04 Jan 2023 20:59:04 +0100 > > >> Warning (treesit): Cannot activate tree-sitter, because > >> tree-sitter library is not compiled with Emacs > > > > This is not a bug. Emacs 29 comes with major modes for TOML files and > > for Dockerfiles, and those new major modes require that you build > > Emacs with the tree-sitter library (and install the corresponding > > parser grammar libraries). If you don't want to do that, you can > > instead customize auto-mode-alist to make Emacs use Fundamental mode > > (or any other mode you like) for these two file types. > > Emacs 28 already has conf-toml-mode for TOML files, so shouldn't > toml-ts-mode be handled like e.g. c-ts-mode instead of being added to > auto-mode-alist? (The default value of that variable in Emacs 29 still > contains an entry for conf-toml-mode, lower down than the entry for > toml-ts-mode.) We could indeed do that for TOML files, but I believe the problem raised here is more general. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 15:33:49 2023 Received: (at 60559) by debbugs.gnu.org; 4 Jan 2023 20:33:49 +0000 Received: from localhost ([127.0.0.1]:49731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDASK-0003UZ-UA for submit@debbugs.gnu.org; Wed, 04 Jan 2023 15:33:49 -0500 Received: from mout.gmx.net ([212.227.17.20]:38975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDASI-0003UN-Aw for 60559@debbugs.gnu.org; Wed, 04 Jan 2023 15:33:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1672864419; bh=jGYYJreFHjUegs06MqtuK7dHHw+yIEvGWXRjehNzLZQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=HXdaJv5H0JArIPjoXzK8wuUbGb1OK/P7lugP/k2Y8pOlk4EUqfG/nYZFpU40bhSMl /rjXbfYo+vISRb7cB1aEd0MezZyCDmSeoTH+evuhmrYjVfnamTsxzNElcaq+qhu+Pq EKAnxBjfLuQbwwJGGFz6RIUBBzyARyAVJI9tPi3EaGZuwpo6uySSyztUxBNFILpCSh MTy7DjXLTbcT5tHOoB/N/+7v/+7C4mI04wUgKCm5XMMb+PgxlI3DKbp+jfMZyOwU0G d3dn4auUIcdoiSGXvCr749K6w04VaK11Ep1VEmLYtH0TfOA2NYZPf/zuSMmS1bvGBv bKfDE9X54H2og== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfs ([89.246.38.149]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3se8-1omWod25WS-00zjlv; Wed, 04 Jan 2023 21:33:39 +0100 From: Stephen Berman To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83mt6yxdq0.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Jan 2023 22:10:47 +0200") References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> Date: Wed, 04 Jan 2023 21:33:38 +0100 Message-ID: <87358q82fx.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:tVlNC844lCLUUpN1jV3tpINqOUE9IQCokaKIYBwfwUmm7BY5Br0 gOuXqi1DLYk0618NqjvKXIEoHIWjADkmDl5ktxzD625ORscBd/liiz2sbwnR7hDem+YjhCN 9SCy5As2lIG1BmxvTkOd/82SrIxsMGU4nIFQUUSuHC4HLUDN8xKkyPW/oQEQ3JA4oN0fSvP 4Q4ebnD9LOo9qghFeYTBQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:cbeuv1Srqvs=;ibOWi+upGhzKGkJqlnuaK06TDfp Tumyy8WthppQTD32/SB3bfGnaHEDObGGqI1OGfT/3dLKy2ywBUBdSP7nR4DeOwmvazVPTjhWK b4O1IEYZXboirc1mKgN6p7QMHTX+zB6eQsDlNuk5jOhe6CcHoPVZctpTCaRvbqnogDJM1h/Pz HulU9xS1InKiVYkXZCATlWNz181PWEaynQE7hVRgtLR5FbdUbz2U+/60duxf+1C9YH95moELT e4BX2N6PbW9Bkxyi67m9fQGR9O4xj4crkFPlOZSevO/ZYgkL229JO23N2sn1v6iW8OfsLPwPp Zfe1MffIIDTBNmLhgVtYzf2mrJ1cw6AlDcDg3Fx1nQPIQVxbv8Ut3fja+lG+NL1as4yIZ90vS o/gK1pYYhOTmPq7g62M1InQYRCtyJ8oMOcpWPr4DSgHgtvEPKZ4Juy17LFnDYkEyHsuhrptMW 6EvXihRu52mndRGF+YVXTMDz43h9Kw5VkCQuyLdZWB87e+rusWIiAKXGj2tIO+r56Y13g1pok EGEQk9Rxbz6j+Th+raW2Ah+wr5oFSl9mqnIf49XqYDcnnppgO31k5Jxi/L/FghOST4GFA4Efe L0c/RGtp1xv4WyboaR9kygxMbcf8bMMKbb3rdj+w0OvbTHlyRD/h5N+8ltQi+7QqXIZeuslA7 XureSjZ7cAH/344RoXhAD7WyaXFQfqsz5dQuBKzftJyW4+phwP23q+3n9bzs4gxmqOQY5Xvs0 e5b9noM44TM3CQGrNptXUAc4monAJIZBau4Sqj+tawRIk9/kQMbjIfDIZCklxBCjomBaG905q 7uMgf6zWVOOrlaXCHjARy1ezOF5ID2BFMZDo/oDEEAyJRc0dX8Fe5IooO2+WsXnf0e7B7guma fmSF1RB8bTGee0NdMdRGDUEF4pJU0Gf1Qp/L8b/cdPQuNeQ8SllkeqwXwKYZ1Vz6w1c2eWXh3 7iWiuCgTUSJrOW+8KaWb/3p1oVk= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.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 Wed, 04 Jan 2023 22:10:47 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: Eric Gillespie , 60559@debbugs.gnu.org >> Date: Wed, 04 Jan 2023 20:59:04 +0100 >> >> >> Warning (treesit): Cannot activate tree-sitter, because >> >> tree-sitter library is not compiled with Emacs >> > >> > This is not a bug. Emacs 29 comes with major modes for TOML files an= d >> > for Dockerfiles, and those new major modes require that you build >> > Emacs with the tree-sitter library (and install the corresponding >> > parser grammar libraries). If you don't want to do that, you can >> > instead customize auto-mode-alist to make Emacs use Fundamental mode >> > (or any other mode you like) for these two file types. >> >> Emacs 28 already has conf-toml-mode for TOML files, so shouldn't >> toml-ts-mode be handled like e.g. c-ts-mode instead of being added to >> auto-mode-alist? (The default value of that variable in Emacs 29 still >> contains an entry for conf-toml-mode, lower down than the entry for >> toml-ts-mode.) > > We could indeed do that for TOML files, but I believe the problem > raised here is more general. That may be, but the TOML case appears to be a regression, since visiting a TOML file in Emacs 28 displays various faces but visiting a TOML file in Emacs 29 without having the tree-sitter TOML grammar library installed displays only the default face. But if fixing the more general problem in Emacs 29 also fixes this apparent regression, then of course that's better than an ad hoc fix. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 19:43:32 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 00:43:32 +0000 Received: from localhost ([127.0.0.1]:49918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDEM0-0004Kn-2J for submit@debbugs.gnu.org; Wed, 04 Jan 2023 19:43:32 -0500 Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]:34735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDELy-0004KY-3y for 60559@debbugs.gnu.org; Wed, 04 Jan 2023 19:43:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672879404; bh=VKoqFEGqypCKrF/K1D7LiQ24EMf2Ko6C8LuSa0TQ3dc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=fXWidT98SmSAEUloJnNhs8du1tSe8lOeOufdE6Fn4PYzu5T1HyI5lXnn57zcKRfrwojT1EgW1+Ggd8vOopvBcVRTQf1tMzB0zJE0AO4a+oECXu2w0uMpvBuDKZ2tkbdsVFzruqY+58aEftILwgfWSayhlm0p78h9+z7PBEyBtBxSIlcNNySxM4dRiC7qWEF5NrcJOvLGi5bQ99xGOW0m6/dgNf9gN9ZRgjdubSXC99y5o7EcHr6dJmfVvVS2PyGOi53P1TWVpKAbU5gJMc1gxl4xer6WRrOSu7i9JZ7juDR9Yjq2ibuXhzaXPP/7ZYKPIwZsWJcOK9c69v8sasewVg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672879404; bh=TGVXSRBNgx2/R41CjXrZM/0Db1zbqo7go+c1bYBTbUT=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=MRDN1rOzLZfSsSqcYd2ITNpoNFxcQBImeUQedfR7GFqOpr75IaIsApzD8DY9a/1MUwReBkXttrTEuSy5reJsY8VAuUsBllu+CBg0y88CAgBnrSvaP1Q8rlP7xXbVlxWZzdEAXjhB0lZzVCNCMm0ZIeQ7AtrW37+kjs2rjoAGhz7iFSIxt2A6q4MufbNwS/GL2zqOiQqNh0d1I1bFbyyjd+gypbGWDBXTI0uYQ62qOrhSUr13XIb4GoaxBJ228jQGL34O2f2oog7wW8KGlcsrxbXlNRCWnGR06+/8y47M5+5asQhzi0R0EUEMCC494e63SarZdTzWk1h2d9JvC/i1Lg== X-YMail-OSG: Ji2oKLcVM1mXgTpfubJE.2PQ62ui8DttBSYHH2u_m8H2vFmC17WEzTq.0A.Wlci 1KnoDkY_1C3JyM_o1fPwlCzfCvitlqbVhcn6hMdmCDk4JZacxr0JJ2VPHFYoYu0ZFWhzsTGWUDv2 RBWj8iuKGZn7GXkRJKsusuP9GKjd.eUKChrfCSXNhW16tWYeJRFIzFzhSWZa3w.3xYQdcFhF7Oed 3IORihi.886puXkSbs9WxCVXbZi2H52edji37I.IzswMcpR8Jx_Ktquhrt4nFp5WVhcVCiCIG_dK EdygNPpypB3AnUoDNU8E2ktoz2vZPCGNIRD3s8bVWwwAPg4N.bbbwQzORY5bB1CNaWllm5gMVT0q MiQUsUeZyorOHZ79sWnbV.GpQZat1gtROK.n87cx4.VOBiqlXxakGaPqOp5A1tQHC3tRi.pLi4YV 09fNpSF5Ttx6Pst1QyzqXg0.spw8vkuSkgZusxWBEW0MiK06okt4..Zg5BzEAsuMiZzf8rML2s_4 a5HqYVDsTVJKceDNXg2Ixeu7gkZ3nrY1ielUeXFVu.U6UAryWpeBIWl57HlNxVbs2.wEKbAJWB_k OeeqiP6sOOUocAaZcGS3Ak.jENlxWkJZkDMP28opIz9sx9fLOc3fpd4_qNBTmhCJpq3diG4Js4FK lGIqmFSjWiHQny0A6ytlQlDGIu0xcNUc8mIxj5SShhJd.mLlipUFNZsQvh7jo3nYT8BlKRub_mMD NW6hSOc2deZM0AEJ0phHcbTeOdVPrdpTbHRqyBUcQXIiLuYnKgSvaHOMNSngDXlLkyuTDbqP5Jz7 0usZ2DbKCAHSU_IB4lh4zK7H4QcqQDt_kaLR96GIuQGi97U5nIHUHYPcJx46bxAxwK47j1TTOiPq h_wHfvgcheDNucFjFYRU5OObupAJGPoPLOXjsvHqiu6lp1UiozwwWiZhKvO7hRPAJm1JG6C8rYWb EXBbX46NPk2_EqkcZ.PUwJR3gcWi9whOqPTDNW0snZu5Tk.P_DbPoj91OrB6CAMAwqifnobvQShs HS2EZSYjOUkK03yT_XdZvPChGsSmHG3_Iq4rAj8cvmEwLRilJkdBOs2eFdxvSP2F_7GXtKBpIGwL olEx9F_a1danuMgXO9o0nG6mIxTB750JPDT6DfpG_XVVadvYyvryWA7jTqK1q0_gYIGdFzCqTZXi EBZ6J3y0K1tGqCqeDNu1glEAu9fcmD7gqi7C0FL8syUyJgNNxQ.L.bTj5ejtcRCyvoctdtN0rw1H aeo1MJKGwO.Gz8dKPzcv_MnDErQhlo0EdDxQwp6SBWITOSEY7H64XFI5LozmZ3Bmr_hbE3xtk4zC 8BZCLvBIzHdshtSLUgQXR8leprYcjzGDZbGEU5Avmv30X59ODQchqmM7QgYg4Vjac.vdqbMAs4z. Xxl_tgJUDjOQqIgtuD8F9rJolsPe4mxtynCcoHRtZJtsfHw8thX9E12rSkFMTnX73TAcesbo.5CU EfbJSGIXNZ6Y8u5ZiC8DZdlwaSHc1vCMQtqvVkTpRyorRk_rU74zj33WMTxRtxfDR8YMPO0LR0FB zoia_MEVEecEJaL_nQFJyL.A1m2QorKBjrFMi8VudLK8nl0lfXzUFwqz63QmCQfMANywTM_rldhZ vV7F6GESe._1M55EY98DXT59CjA8_R1J94Rv7iINUaDJNN0Woo19b11IIqBN_uMpWlOyoeNxXbdI shg4KMUdrFtBAVcmelBn5uc1_Qx8jkvj2xp7NMUoOFAidTdmz1WH42eDDp1zJlfUr1Ecrka62DCQ 8u_P1.G5r4vj8xf_1Ky7ptwMuN_izblka7gqCSFLWQmwpw7uinnco5C1B98jxIZVcqYzgLsouPzx PM91APIHFp1NxbHattEDnvQEvQc31BW7l97adTG6NiSWMcBetjaK8bjGg3nLU2Aov3T7gpFKSCJr hxi3mL15pk5_qDd7.9faCuhF0gWiAbkuBmiDMIHwOu_9zK3Zq.233xbslg0l.EbH.iBm5qPE0w7M Ahg5LA9dCDqd1E4IQERfvI0BFCIkxylNJ1cAZZyn6nRAX1c85Q8vv39Dx7sm.am43hIVwjB4y9U0 f7L5FolDQP3rnkyDzTJd8uTKbt0rxJ7TOaZofzqZxU2oNOOEtCTdfxdjVqXqzMsMtPJL94V9miZn g.mv0YgVrTCySM7AYf33d_VcM6vb4rIAj4HTYVn7U.vUZvCVKcyPYcxaTcE8rwASWDlmbiM7iBl9 7ExsmO.N6HqBFZMs1DBeIlKip2.Vsxp7bVwo0HNZCme0qirRM6U50lfjpTqEJJNpt X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Thu, 5 Jan 2023 00:43:24 +0000 Received: by hermes--production-sg3-b666c6484-nr67k (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1a5fa7d69a4bc02ad384968ace99b009; Thu, 05 Jan 2023 00:43:19 +0000 (UTC) From: Po Lu To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83o7rexe2n.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Jan 2023 22:03:12 +0200") References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> Date: Thu, 05 Jan 2023 08:43:12 +0800 Message-ID: <874jt5kdzz.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1970 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.org, Daniel =?utf-8?Q?Mart=C3=ADn?= 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.0 (-) Eli Zaretskii writes: >> From: Daniel Mart=C3=ADn >> Cc: Eric Gillespie , 60559@debbugs.gnu.org >> Date: Wed, 04 Jan 2023 20:40:24 +0100 >>=20 >> Eli Zaretskii writes: >>=20 >> > >> > This is not a bug. Emacs 29 comes with major modes for TOML files and >> > for Dockerfiles, and those new major modes require that you build >> > Emacs with the tree-sitter library (and install the corresponding >> > parser grammar libraries). If you don't want to do that, you can >> > instead customize auto-mode-alist to make Emacs use Fundamental mode >> > (or any other mode you like) for these two file types. >>=20 >> Isn't this another manifestation of what's being discussed in bug#60511? >> I also think that treesit-ready-p should not emit a warning by default, >> it's too noisy and confusing for people that don't know about >> Tree-sitter and consequently use a build of Emacs 29 without Tree-sitter >> enabled. > > That is one use case. The other, no less important one, is when the > user thinks his/her Emacs is built with tree-sitter and has the > relevant stuff installed, whereas the reality is different. Silently > doing nothing in that case is hardly TRT. > > So if we want to solve this, we need to find a solution that fits both > of these use cases. > >> Also, it's strange that, even if Tree-sitter is not configured at all, a >> major mode whose description mentions Tree-sitter is apparently loaded. > > I don't find it strange at all. Slightly unrelated to this bug. I think we will have to find a way to bundle certain tree-sitter grammars with Emacs. On Android, system policy prohibits programs from loading dynamic libraries that are not installed by the system in a read only location upon installation of the application package itself, so asking users to build those grammars will not work at all. Android users typically have no C compiler installed either. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 01:41:56 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 06:41:56 +0000 Received: from localhost ([127.0.0.1]:50064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJwq-0005v0-AR for submit@debbugs.gnu.org; Thu, 05 Jan 2023 01:41:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJwo-0005ul-Nk for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 01:41:55 -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 1pDJwi-0006Ci-RP; Thu, 05 Jan 2023 01:41:48 -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=DDEHl3WNE+1RC0qG4rMTfHzPq4jrXLf8WsTTlp8ukaQ=; b=iUn/gp3lFKl3 WxSYBksw4ajbiY9MP0F0Ywcm9wm6FvPflwi4D4eMFck9xRx6Mk1mT1IodR5wPdS7ynBYB/zFqG3dj flZEztr2vrG0KRR8cKez42PEpAh0OnTmERBGZbbyIoNdKpcKouiWOEtsDJoJgSyr1oDKScxSyVVB6 Gei0Y03f3vqo+vqT0xgkQH/15MW2WMuvqj/1R4JRFfgceZhY65+XSkTjLMmB63ArHuuch1I4K3Nhv IPAHxHlxxt7ol9o1WjCYoL2g3W1/UCFrW0LTkZ1eIUiXjJ8DVyK5MSJuP8yez7SeCBORqepnMNkUE 0gai8gCwcUtZ6sly+VhVFw==; 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 1pDJwf-00024j-3W; Thu, 05 Jan 2023 01:41:47 -0500 Date: Thu, 05 Jan 2023 08:41:59 +0200 Message-Id: <83ilhlxz2g.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-Reply-To: <87358q82fx.fsf@gmx.net> (message from Stephen Berman on Wed, 04 Jan 2023 21:33:38 +0100) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> <87358q82fx.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.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 (---) > From: Stephen Berman > Cc: epg@pretzelnet.org, 60559@debbugs.gnu.org > Date: Wed, 04 Jan 2023 21:33:38 +0100 > > On Wed, 04 Jan 2023 22:10:47 +0200 Eli Zaretskii wrote: > > >> From: Stephen Berman > >> Cc: Eric Gillespie , 60559@debbugs.gnu.org > >> Date: Wed, 04 Jan 2023 20:59:04 +0100 > >> > >> >> Warning (treesit): Cannot activate tree-sitter, because > >> >> tree-sitter library is not compiled with Emacs > >> > > >> > This is not a bug. Emacs 29 comes with major modes for TOML files and > >> > for Dockerfiles, and those new major modes require that you build > >> > Emacs with the tree-sitter library (and install the corresponding > >> > parser grammar libraries). If you don't want to do that, you can > >> > instead customize auto-mode-alist to make Emacs use Fundamental mode > >> > (or any other mode you like) for these two file types. > >> > >> Emacs 28 already has conf-toml-mode for TOML files, so shouldn't > >> toml-ts-mode be handled like e.g. c-ts-mode instead of being added to > >> auto-mode-alist? (The default value of that variable in Emacs 29 still > >> contains an entry for conf-toml-mode, lower down than the entry for > >> toml-ts-mode.) > > > > We could indeed do that for TOML files, but I believe the problem > > raised here is more general. > > That may be, but the TOML case appears to be a regression, since > visiting a TOML file in Emacs 28 displays various faces but visiting a > TOML file in Emacs 29 without having the tree-sitter TOML grammar > library installed displays only the default face. I've now made toml-ts-mode an optional one, leaving conf-toml-mode as the default. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 01:51:39 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 06:51:40 +0000 Received: from localhost ([127.0.0.1]:50069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDK6F-0006Cq-Ge for submit@debbugs.gnu.org; Thu, 05 Jan 2023 01:51:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDK6D-0006Ca-73 for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 01:51:37 -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 1pDK66-000399-Sp; Thu, 05 Jan 2023 01:51:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=I80D6Rk31eXJ1JeBGc6Fw0tdFjToD+GeUzob8zJvZgQ=; b=QXl0KYIA35nFAsSMazre bHzrMntJRwocIiRC4ncdELbODTRIBIklSwoMqna4jKhum4Q9jL3YNgxjIcqxsbQN+G3HJG/9BZaDF RyRdulesOSEwY4YUSls1roLBeJ+99UvQ0IMkVFMvxTO7k9hZx7j+sw4ZWf3KOLYsQ3L98wbY+C8C+ 01AeR1plb6lR7tyEU7btuFUaFIV1p53v2TmfwcIrMEF6Fgs/yvnio1yoA1k65kI866qwFnbTOscl4 0kdIM8oGrIArFlH6As8J4/kEiuAHkxxQnKtWsab2cYuKFL7UFRLfH9XVyd9n9GesRvbkE47iJmrec Hx6wVT5Xph0EhA==; 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 1pDK66-0003o9-9f; Thu, 05 Jan 2023 01:51:30 -0500 Date: Thu, 05 Jan 2023 08:51:44 +0200 Message-Id: <83h6x5xym7.fsf@gnu.org> From: Eli Zaretskii To: Fu Yuan , Stefan Monnier , Lars Ingebrigtsen , Theodor Thornhill , Jostein =?iso-8859-1?Q?Kj=F8nigsen?= In-Reply-To: <83o7rexe2n.fsf@gnu.org> (message from Eli Zaretskii on Wed, 04 Jan 2023 22:03:12 +0200) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.org, mardani29@yahoo.es 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 (---) > Cc: 60559@debbugs.gnu.org, epg@pretzelnet.org > Date: Wed, 04 Jan 2023 22:03:12 +0200 > From: Eli Zaretskii > > > From: Daniel Martín > > Cc: Eric Gillespie , 60559@debbugs.gnu.org > > Date: Wed, 04 Jan 2023 20:40:24 +0100 > > > > Eli Zaretskii writes: > > > > > > > > This is not a bug. Emacs 29 comes with major modes for TOML files and > > > for Dockerfiles, and those new major modes require that you build > > > Emacs with the tree-sitter library (and install the corresponding > > > parser grammar libraries). If you don't want to do that, you can > > > instead customize auto-mode-alist to make Emacs use Fundamental mode > > > (or any other mode you like) for these two file types. > > > > Isn't this another manifestation of what's being discussed in bug#60511? > > I also think that treesit-ready-p should not emit a warning by default, > > it's too noisy and confusing for people that don't know about > > Tree-sitter and consequently use a build of Emacs 29 without Tree-sitter > > enabled. > > That is one use case. The other, no less important one, is when the > user thinks his/her Emacs is built with tree-sitter and has the > relevant stuff installed, whereas the reality is different. Silently > doing nothing in that case is hardly TRT. > > So if we want to solve this, we need to find a solution that fits both > of these use cases. So here's a suggestion for such a solution: we make all the *-ts-mode's optional. That is, we don't add any of them to auto-mode-alist unless the file *-ts-mode.el is loaded, and we document them all in NEWS and the user manual as optional. users who want them will have to manually activate them. This way, the original use case that started this bug report is automatically solved, and the other use case, where the user intends to activate one of these modes, is also served by showing the warning, which in that case is perfectly justified: the user asked for something that we cannot do, so we warn him/her. This is a retreat of sorts, but I think it strikes a better balance wrt user expectations, assuming not everyone will build with tree-sitter. Any comments or objections? If not, I will do this in a couple of days on the emacs-29 branch. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 02:06:09 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 07:06:09 +0000 Received: from localhost ([127.0.0.1]:50085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDKKG-0006ZE-Nk for submit@debbugs.gnu.org; Thu, 05 Jan 2023 02:06:09 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDKKF-0006Yr-0N for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 02:06:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1AB45240137 for <60559@debbugs.gnu.org>; Thu, 5 Jan 2023 08:06:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672902361; bh=yLIadhjNOAqZ1xOXewnr7mjqilpTgQ0Yn6e8Kp6J6mU=; h=From:To:Cc:Subject:Date:From; b=YamjaURocvM2kzX67rYxCvQr4zLEBjwbQdKjyDyTOOnlI44VFjSn7SsHhlsOJZoir /eb84Gt+C4+QIUPnzYkvx08aXAq3w6xO0ArtWJiVN7a3JdqoKa5iCTiR2DmarkF/Yv N3aRVwul9g1CNJDXdN8D7T23bwlsT6QLqbVCPgJuAXFsY7rz0hvxRwEh/ZTu6YNflX D7oL5IA2EiFTwqho7U69VkKrZpsmO5SCtnkewq95TTRiVTwsG04CnFLDdOCXQgdPfa V0qyh7gMBOJQJFKP4VGoGGg6FTjNbUsAmWLTSU+cSwZfSoKZqZ/YYBWP+adFW2FIm/ xKLMDguEvFoQw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NncvB6wYLz6tmN; Thu, 5 Jan 2023 08:05:57 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83h6x5xym7.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> Date: Thu, 05 Jan 2023 07:06:24 +0000 Message-ID: <87ilhlihov.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: Fu Yuan , 60559@debbugs.gnu.org, Theodor Thornhill , mardani29@yahoo.es, Jostein =?utf-8?Q?Kj=C3=B8nigsen?= , Stefan Monnier , Lars Ingebrigtsen , epg@pretzelnet.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 (---) Eli Zaretskii writes: > So here's a suggestion for such a solution: we make all the > *-ts-mode's optional. That is, we don't add any of them to > auto-mode-alist unless the file *-ts-mode.el is loaded What if they are auto-loaded? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 02:44:42 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 07:44:42 +0000 Received: from localhost ([127.0.0.1]:50116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDKva-0007Xy-D3 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 02:44:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDKvY-0007Xf-Ad for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 02:44: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 1pDKvR-0005JJ-Ju; Thu, 05 Jan 2023 02:44:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=aRiRPHe5/ri2SHr5PGYUUn98RlObWBPwE0zvCwG1V68=; b=bYJW2fH3wHBgMD7/x3q2 cCq05a25jN+VHmKkE8qDNWR4m4eLHAICdlGa8RM3rEi9Qq80iP5hswBXwmMReFmNaRCSUYzZGhNDm 7XXcmQ0Pj2pwhrnvmbCKA6PapOxJOgbLt1Hcd1Q5Ucsb22ecAMump0a0qJuGiriVWWGl849Og14m0 wA6schQsWb3iTeKSrXtM79byD4nDNkyXvKcQNx+jq/61Ym+57JXu0jW1vLdpOqhpqhJdJ//oX4Ll6 RrPgEmnxPnmDA7dTsGmVz7p7W3kYRmVPNsnjYHfkvSnCT6QhO+kZ4z5DQx+byXCodjLRkKkCdhFTv LVBGLX1gfnxQ0g==; 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 1pDKvQ-0005JD-QE; Thu, 05 Jan 2023 02:44:33 -0500 Date: Thu, 05 Jan 2023 09:44:46 +0200 Message-Id: <83cz7txw5t.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87ilhlihov.fsf@localhost> (message from Ihor Radchenko on Thu, 05 Jan 2023 07:06:24 +0000) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) > From: Ihor Radchenko > Cc: Fu Yuan , Stefan Monnier , > Lars Ingebrigtsen , Theodor Thornhill , > Jostein Kjønigsen , > 60559@debbugs.gnu.org, > epg@pretzelnet.org, mardani29@yahoo.es > Date: Thu, 05 Jan 2023 07:06:24 +0000 > > Eli Zaretskii writes: > > > So here's a suggestion for such a solution: we make all the > > *-ts-mode's optional. That is, we don't add any of them to > > auto-mode-alist unless the file *-ts-mode.el is loaded > > What if they are auto-loaded? Autoloaded how? IOW, what variable or function is autoloaded and causes these modes to be automatically loaded? And where do we have or could have such code? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 02:47:04 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 07:47:04 +0000 Received: from localhost ([127.0.0.1]:50120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDKxs-0007cI-1Q for submit@debbugs.gnu.org; Thu, 05 Jan 2023 02:47:04 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:41913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDKxq-0007bn-6v for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 02:47:02 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 51FAF1C0005; Thu, 5 Jan 2023 07:46:53 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83ilhlxz2g.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 Jan 2023 08:41:59 +0200") Organization: LINKOV.NET References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> <87358q82fx.fsf@gmx.net> <83ilhlxz2g.fsf@gnu.org> Date: Thu, 05 Jan 2023 09:46:48 +0200 Message-ID: <867cy1a0vj.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, Stephen Berman , epg@pretzelnet.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 (-) >> >> Emacs 28 already has conf-toml-mode for TOML files, so shouldn't >> >> toml-ts-mode be handled like e.g. c-ts-mode instead of being added to >> >> auto-mode-alist? (The default value of that variable in Emacs 29 still >> >> contains an entry for conf-toml-mode, lower down than the entry for >> >> toml-ts-mode.) >> > >> > We could indeed do that for TOML files, but I believe the problem >> > raised here is more general. >> >> That may be, but the TOML case appears to be a regression, since >> visiting a TOML file in Emacs 28 displays various faces but visiting a >> TOML file in Emacs 29 without having the tree-sitter TOML grammar >> library installed displays only the default face. > > I've now made toml-ts-mode an optional one, leaving conf-toml-mode as > the default. So now non-ts users are satisfied at the expense of ts users. Why not to do the right thing: (add-to-list 'auto-mode-alist `("\\.toml\\'" . ,(if (treesit-ready-p 'toml) 'toml-ts-mode 'conf-toml-mode))) From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 02:57:17 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 07:57:17 +0000 Received: from localhost ([127.0.0.1]:50141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDL7l-0007vt-24 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 02:57:17 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:46093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDL7j-0007vg-OK for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 02:57:16 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4A5843200A46; Thu, 5 Jan 2023 02:57:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 05 Jan 2023 02:57:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to; s=fm1; t=1672905428; x=1672991828; bh=GN tuXuqvcWdQo9ZWjSDW/o99YAR1cVGgLLcQUONOsrk=; b=bIyX67sSQ4c93a39mo zGrk1OIDKgqnIfw5YQ+Ugv3JVW2j6yErA6IBcS7ZRWYNcutHhJw7ugq6K66AgaIO 6sfQJJ/zObhmsIdNilQq89TmaDcEi1mSZYs/Xqm9kjhvAwsehGfxaChGcxHM7s8k Jj4x46Amrqp0xv+hn1cU0JH+46coNrpkyDg1VyTbcHKaQV32weJnP4U+sMV6AuZa Q0tOn1clMtri1urRnvUUAKkmCT+ncj1jp806DpDgVGhFNlRdoVNjF3PoboZvZ6YE pfnBFY+XFqItrihxmlCpWkAZmYf6ndv4Ky5z9cg5tPssdVwKn6A8G9iIfJ2LYEfR 1tJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1672905428; x=1672991828; bh=GNtuXuqvcWdQo9ZWjSDW/o99YAR1cVGgLLc QUONOsrk=; b=H7o/Boia2G9YjRe2LYDqdkW7kWByNt5hrb9mIkvRRpjgW2BK881 M34mT2WjXgGNnmiXr/3mN56pYtyFDB2ovhat8/ZQJ2qAQ1bkJKjls8aaRm1VRUnM YTUwHzgdik44oeLn4pt+5EySYMFprN5Qz4nNflw/SsFIMtl39fyp2MsHXckTmJDB xm/VYhAscQxpLwuUzHs7UF0GHTkQXBZxAb7XVWGXDm+N0AwDZDhZdyW9gZI+goFs hifyRxYw2aK4rNhiqFeOYKzImUBAzUmKr6wU2Oku8jwPg92MuQ/zrtRjSWNbPMtN JjvfCPhPfUTiUZ6FsxRH+LNG0PT9fzStM1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeejgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfrhfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheplfho shhtvghinhcumfhjpphnihhgshgvnhcuoehjohhsthgvihhnsehsvggtuhhrvgdrkhhjoh hnihhgshgvnhdrnhgvtheqnecuggftrfgrthhtvghrnhephfegveevhfeffeeftddvhfdv ieeiffehieehgeehgedttdekveffleetteegvdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepjhhoshhtvghinhesshgvtghurhgvrdhkjhho nhhighhsvghnrdhnvght X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Jan 2023 02:57:07 -0500 (EST) Message-ID: <6f44f7b4-2e14-51c2-2727-55a219b3b76d@secure.kjonigsen.net> Date: Thu, 5 Jan 2023 08:57:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam Content-Language: en-GB, nb-NO To: Eli Zaretskii , Fu Yuan , Stefan Monnier , Lars Ingebrigtsen , Theodor Thornhill References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> From: =?UTF-8?Q?Jostein_Kj=c3=b8nigsen?= In-Reply-To: <83h6x5xym7.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.org, mardani29@yahoo.es 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: , Reply-To: jostein@kjonigsen.net Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) On 05.01.2023 07:51, Eli Zaretskii wrote: > > So here's a suggestion for such a solution: we make all the > *-ts-mode's optional. That is, we don't add any of them to > auto-mode-alist unless the file *-ts-mode.el is loaded So if I understand this correctly, the change is simply that people wanting to use these modes now needs to do two things instead of one: 1. build with tree-sitter support (already a requirement) 2. will have to (require) the modes they want to use in their init.el (the change) Have I understood things correctly? If so, that sounds perfectly reasonable to me. -- Jostein From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 02:58:49 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 07:58:49 +0000 Received: from localhost ([127.0.0.1]:50146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDL9F-0007y3-GN for submit@debbugs.gnu.org; Thu, 05 Jan 2023 02:58:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDL9E-0007xr-4o for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 02:58:48 -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 1pDL98-0002jr-Jj; Thu, 05 Jan 2023 02:58:42 -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=e8KQa2sguwPTxitGpl7gUlhYicm2poDBV7K/HmHBwls=; b=oEjVsqJXLKba Hu/6xX8T6ANfVwle0NKnvYBBcu3aALmxAZBeqDVT6tABHQzSxA1mrNO+pVn+iE5rf49qmLuwFBkFC DEnVGPQI/2MjkeiLnuMNrrsxbgfXhP68R2OS1sVJcSNvuMoMLxrWJBsiXr83zUN8eeZsWLXKu52at V6yWvXbnSylMEg8bQaGg7VufSGjWsd7CisMBJf11Ju7r1ALkVpp/9a/AT2Ma8owX1Vpjh/AFq/viQ U6WPeoITCadU9me4XyMLDdqMwAW+Cw5qQHIs5ScQFdVZ14xoFtsk3fBVHR8NtHmkrLho6zm+/LSuD 5WtYiU7hWiQ3ab/ihT3xCg==; 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 1pDL98-0002wq-1j; Thu, 05 Jan 2023 02:58:42 -0500 Date: Thu, 05 Jan 2023 09:58:56 +0200 Message-Id: <83bkndxvi7.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <867cy1a0vj.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 05 Jan 2023 09:46:48 +0200) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> <87358q82fx.fsf@gmx.net> <83ilhlxz2g.fsf@gnu.org> <867cy1a0vj.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, stephen.berman@gmx.net, epg@pretzelnet.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 (---) > From: Juri Linkov > Cc: Stephen Berman , 60559@debbugs.gnu.org, > epg@pretzelnet.org > Date: Thu, 05 Jan 2023 09:46:48 +0200 > > >> >> Emacs 28 already has conf-toml-mode for TOML files, so shouldn't > >> >> toml-ts-mode be handled like e.g. c-ts-mode instead of being added to > >> >> auto-mode-alist? (The default value of that variable in Emacs 29 still > >> >> contains an entry for conf-toml-mode, lower down than the entry for > >> >> toml-ts-mode.) > >> > > >> > We could indeed do that for TOML files, but I believe the problem > >> > raised here is more general. > >> > >> That may be, but the TOML case appears to be a regression, since > >> visiting a TOML file in Emacs 28 displays various faces but visiting a > >> TOML file in Emacs 29 without having the tree-sitter TOML grammar > >> library installed displays only the default face. > > > > I've now made toml-ts-mode an optional one, leaving conf-toml-mode as > > the default. > > So now non-ts users are satisfied at the expense of ts users. The cost for the latter is simple: require toml-ts-mode in the init file. > Why not to do the right thing: > > (add-to-list 'auto-mode-alist `("\\.toml\\'" . > ,(if (treesit-ready-p 'toml) 'toml-ts-mode 'conf-toml-mode))) Because I don't want to risk any breakage by last-minute changes. Do we want to release Emacs 29 soon, or do we want to keep developing it for another year? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 02:59:47 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 07:59:47 +0000 Received: from localhost ([127.0.0.1]:50150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLAA-0007zj-Ue for submit@debbugs.gnu.org; Thu, 05 Jan 2023 02:59:47 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLA9-0007zV-2s for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 02:59:45 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8BC50240658 for <60559@debbugs.gnu.org>; Thu, 5 Jan 2023 08:59:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672905579; bh=vGJuV85dQh1IX9/RiJMusjXuKKi+n3ysPD8y+VDxdpI=; h=From:To:Cc:Subject:Date:From; b=J44kNtiJNKtq5W2r+XzdJqf7r1dSkGgWmWjdcgYtZVK5XJjjQ4QuRu43B/oeWFmFv emFIQt1B23CGeobO8h5M8mRdwRtbgbOdBTFCEd9e0e72sRGKa+mAu36TP5lmE005/E JgTH+lU+EBa140wqDYtw7pkeJ35iGXJ52sfaK/NXSBCifF+K3fCnIcFW7Hxf9yEMB5 Jmt5hq2bpeD0YoWAUOe2DL5WQOBQd3f2SqPR/ztjQTs/wU7+5xGdgXsj476WxSfz0e nyryzywZxZqVEgjXkKEv+sGXbo1rtjuqADJJnWzYb2uiiQDFavD8vvS6fpgUdDrZlX xokZYB2lJggKQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nnf5537m6z6tmF; Thu, 5 Jan 2023 08:59:37 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83cz7txw5t.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> Date: Thu, 05 Jan 2023 08:00:09 +0000 Message-ID: <87cz7tif7a.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) Eli Zaretskii writes: >> What if they are auto-loaded? > > Autoloaded how? IOW, what variable or function is autoloaded and > causes these modes to be automatically loaded? And where do we have > or could have such code? Auto-completion. 1. emacs -Q 2. M-: (featurep 'go-ts-mode) ; => nil 3. f go-ts- mode 4. M-: (featurep 'go-ts-mode) ; => t -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:12:17 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:12:17 +0000 Received: from localhost ([127.0.0.1]:50187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLMG-0002Dx-Uw for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:12:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLMF-0002Dl-4p for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:12:15 -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 1pDLM8-0003kN-EP; Thu, 05 Jan 2023 03:12:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=xmdWEaaxjDvZ3ESLmTudc6Dk//xDROA4+aNJHhU6UZs=; b=XEkGbUPjSdrjwIAM0EzP Dhr8eVrVYINk45Q6YEvNMjxicfAQGXu32C2IP27Gmatt59CwmG3v0ydxFprewbBmRrs1jICSnti2E 9S9mYGCbwRsKzK9+4RMRkN8rZ3tirziZkvJ/HgWq0ohhn5oRM+Oc/4dJgYfZhMSPmq1kSrmyVCZ5F Xofr9N0JJcBXNQu/+kjtqtEuPB/+Y9aOc4cbrqL8Ff/2XeLNMnEm6nW6t05Nu/2OC3o7Jd/gknH3A 4FqNcMJO1yUA5riKYdStFTJT+5ufb5kYq2cYo1toPdUCn20AAhRiQffykW9YK5rzA1Kkp/N+TGrJD Pi5YG31+EqE6MQ==; 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 1pDLM7-0007Sz-MP; Thu, 05 Jan 2023 03:12:08 -0500 Date: Thu, 05 Jan 2023 10:12:22 +0200 Message-Id: <838rihxuvt.fsf@gnu.org> From: Eli Zaretskii To: jostein@kjonigsen.net In-Reply-To: <6f44f7b4-2e14-51c2-2727-55a219b3b76d@secure.kjonigsen.net> (message from Jostein =?utf-8?Q?Kj=C3=B8nigsen?= on Thu, 5 Jan 2023 08:57:05 +0100) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <6f44f7b4-2e14-51c2-2727-55a219b3b76d@secure.kjonigsen.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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, 5 Jan 2023 08:57:05 +0100 > Cc: 60559@debbugs.gnu.org, mardani29@yahoo.es, epg@pretzelnet.org > From: Jostein Kjønigsen > > On 05.01.2023 07:51, Eli Zaretskii wrote: > > > > So here's a suggestion for such a solution: we make all the > > *-ts-mode's optional. That is, we don't add any of them to > > auto-mode-alist unless the file *-ts-mode.el is loaded > > So if I understand this correctly, the change is simply that people > wanting to use these modes now needs to do two things instead of one: > > 1. build with tree-sitter support (already a requirement) > > 2. will have to (require) the modes they want to use in their init.el > (the change) > > Have I understood things correctly? Yes, that's the idea. We could also make the mode command be autoloaded, so just "M-x foo-ts-mode RET" the first time will load the mode, thus avoiding the need for require in the init files. I guess there will be users which will prefer one or the other. > If so, that sounds perfectly reasonable to me. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:26:25 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:26:25 +0000 Received: from localhost ([127.0.0.1]:50203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLZx-0002ao-0l for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:26:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLZv-0002aX-2o for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:26:23 -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 1pDLZn-0001x2-KK; Thu, 05 Jan 2023 03:26:15 -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=cFXE7Xeh/y28VDv1NnyjobikKRBrXDx4HJj/VpOibCY=; b=WYs03flWO86Z tld2O864eqbeMrJyVg7f1hvT9jGGNDbAjrhp11bJSe7pRfHjq8HO+me6q57615+Xx7Yb7huuSSRM2 rsOH5pvxkoyozV7aXETtryEx4Wfte3H4cweboRI9qEPeMFWS/lWLlApXg7pkU15laEJAEP8BPvCtC GrzH+MM/GigoV/28nW3LnmWMgWHCABGZ0Kv7G95WKBInToEXhTbNFFxDalC0buQs+zpGpIHXJEITz F3z05Mn64NoZf40ZN9/EnbpmHPCF294n+IJjcIW+3a5DUdadbFyghjCMNldWHrs/Dn+GJbRYZ+b04 LWSWJySYNFNUsI8QRddl+Q==; 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 1pDLZm-0000yu-Jq; Thu, 05 Jan 2023 03:26:15 -0500 Date: Thu, 05 Jan 2023 10:26:28 +0200 Message-Id: <837cy1xu8b.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87cz7tif7a.fsf@localhost> (message from Ihor Radchenko on Thu, 05 Jan 2023 08:00:09 +0000) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> <87cz7tif7a.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) > From: Ihor Radchenko > Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, > theo@thornhill.no, jostein@secure.kjonigsen.net, 60559@debbugs.gnu.org, > epg@pretzelnet.org, mardani29@yahoo.es > Date: Thu, 05 Jan 2023 08:00:09 +0000 > > Eli Zaretskii writes: > > >> What if they are auto-loaded? > > > > Autoloaded how? IOW, what variable or function is autoloaded and > > causes these modes to be automatically loaded? And where do we have > > or could have such code? > > Auto-completion. > > 1. emacs -Q > 2. M-: (featurep 'go-ts-mode) ; => nil > 3. f go-ts- mode > 4. M-: (featurep 'go-ts-mode) ; => t I cannot reproduce this with toml-ts-mode on the emacs-29 branch. go-ts-mode is still the default for Go files, but toml-ts-mode is not the default for TOML files. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:32:42 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:32:42 +0000 Received: from localhost ([127.0.0.1]:50214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLg2-0002m7-B3 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:32:42 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:59451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLg0-0002lr-Eh for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:32:41 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B58973200A28; Thu, 5 Jan 2023 03:32:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 05 Jan 2023 03:32:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to; s=fm1; t=1672907552; x=1672993952; bh=qn t0/gljlrDIgAE7BTPB56kBvu+QXqafJ5zw2CArylc=; b=bv7QVg89R82Tx7OZj6 WtJjiZQE2vvBpDdZUopiP0rNjOu3mlb0+yrvy6n6c3748qdVNYGXBVg36gUFWlsg OJrfp+Oi9VIW358hov+ix1agWWma5qxSFUa6NMTRawXAsOgGGBo+g1X8+PLQF7PG 7+HX2I1p8GtNJU8L3IJ74ahtK63jpM1aBLcA7zeNBtneTws79gJKxnIwAMHeP49Y TxcHQUSoRZLxylLt8zHQ4C7M7mKgSNyVZYb6hCI/Fk6XpyXCn/iNHQFgn2tCT7an oVJx+PFShaNrZKkSUfsEQ6+O/mBG9UeTOMAygSY6dsFZaiXA5XNVLUgRGQnhSakc yl1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1672907552; x=1672993952; bh=qnt0/gljlrDIgAE7BTPB56kBvu+QXqafJ5z w2CArylc=; b=Mpkwb9vC1DKr1WbGChivmLrmqSuKx55HmhmPKnenaPJAq+Hg0Tl ZqJH2sIoIH2PdArVfsCopywXQTpi9dqJW4uVPwy4aBUUYP7DQPmvbnGRk9J2zToA nuMx3WBh8OBMKWUm4CsJm0k4mwoDvbny4THf99rMtvsStQYay/2cWNdj87aJF4sb eFTUfUVWL+3JvT9+03xiLtg9apuYZFHvJXR7dc9zac5Tte+QUqit3JeiIakqTKFH 9wJXR6WAHq+L3bfk4j+0hvsNnMDHwAfjuQHSMqSXgIlVfN9YRkhsiOYMfeV//8WQ rmCKsfNWJLPtDNV2prU51YWMpvXzd8g2vEw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeejgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfrhfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheplfho shhtvghinhcumfhjpphnihhgshgvnhcuoehjohhsthgvihhnsehsvggtuhhrvgdrkhhjoh hnihhgshgvnhdrnhgvtheqnecuggftrfgrthhtvghrnheptdeftdektdffueekvddvvdek ueevuddviedtffffgffggeeltdekhefgtdejkeevnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepjhhoshhtvghinhesshgvtghurhgvrdhkjhho nhhighhsvghnrdhnvght X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Jan 2023 03:32:31 -0500 (EST) Message-ID: <2aded4bd-5327-d2c0-11a6-34ca8c12fbd1@secure.kjonigsen.net> Date: Thu, 5 Jan 2023 09:32:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam Content-Language: en-GB, nb-NO To: Eli Zaretskii , jostein@kjonigsen.net References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <6f44f7b4-2e14-51c2-2727-55a219b3b76d@secure.kjonigsen.net> <838rihxuvt.fsf@gnu.org> From: =?UTF-8?Q?Jostein_Kj=c3=b8nigsen?= In-Reply-To: <838rihxuvt.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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: , Reply-To: jostein@kjonigsen.net Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) On 05.01.2023 09:12, Eli Zaretskii wrote: >> Date: Thu, 5 Jan 2023 08:57:05 +0100 >> Cc: 60559@debbugs.gnu.org, mardani29@yahoo.es, epg@pretzelnet.org >> From: Jostein Kjønigsen >> >> >> So if I understand this correctly, the change is simply that people >> wanting to use these modes now needs to do two things instead of one: >> >> 1. build with tree-sitter support (already a requirement) >> >> 2. will have to (require) the modes they want to use in their init.el >> (the change) >> >> Have I understood things correctly? > Yes, that's the idea. We could also make the mode command be > autoloaded, so just "M-x foo-ts-mode RET" the first time will load the > mode, thus avoiding the need for require in the init files. I guess > there will be users which will prefer one or the other. > If we assume that distros are going to be building with treesitter-support sooner rather than later, I guess that would be the absolutely smoothest way we can have for users to have this working OOB, without causing issues for users/distros building without such support. I definitely support such an approach if it's doable without too much effort or risk. -- Jostein From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:40:13 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:40:13 +0000 Received: from localhost ([127.0.0.1]:50219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLnJ-0002xT-Dg for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:40:13 -0500 Received: from mout02.posteo.de ([185.67.36.66]:50669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLnF-0002xB-Cc for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:40:12 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4B1332406D5 for <60559@debbugs.gnu.org>; Thu, 5 Jan 2023 09:40:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672908003; bh=aJY6ofRJGGy8ONSSjHY35HB9pwrDwLlZm1zAFK4uDCE=; h=From:To:Cc:Subject:Date:From; b=St1zoiqHM8XuEQjO6vjW8HT1WFf6MqDOSeP5VxHaPNJUuk5OetYylhc64198dXca5 fkBJxP0x4+BAL9iNRkPBm7CqDhE1dArtOJ8R/NZuwIsnxMZBkf47WDOWlMWcW+lyEg f4vzoRsRLFr9SZLAYueTQXIqWiC+4+Nl0vfBVH6duph0x8NgFGTguF1npg/rL25BOw oKxET9B6IgPpqSaZQs16hZCrN4z1/pxjeABLtRscz6cJF3FQ66Tu0ZkAPh+s9kyIqK wvLwfuBvuu9Wi56euOEY6jjb0lJwEvm7LX4q8RtBiTyNyHATVNAu5oaV6rGJEQsf5/ RPptK9nVGjx7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nnfzj4GyDz6tpY; Thu, 5 Jan 2023 09:40:01 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <837cy1xu8b.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> <87cz7tif7a.fsf@localhost> <837cy1xu8b.fsf@gnu.org> Date: Thu, 05 Jan 2023 08:40:33 +0000 Message-ID: <871qo9idby.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) Eli Zaretskii writes: >> Auto-completion. >> >> 1. emacs -Q >> 2. M-: (featurep 'go-ts-mode) ; => nil >> 3. f go-ts- mode >> 4. M-: (featurep 'go-ts-mode) ; => t > > I cannot reproduce this with toml-ts-mode on the emacs-29 branch. > go-ts-mode is still the default for Go files, but toml-ts-mode is not > the default for TOML files. I just checked, and I cannot reproduce on emacs-29 branch with both go-ts-mode and toml-ts-mode. in (3) simply don't trigger completion (and thus no auto-loading). Presumably because auto-loading on completion is not yet available. The above steps only work on master. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:42:10 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:42:10 +0000 Received: from localhost ([127.0.0.1]:50223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLpB-00030h-Ts for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:42:10 -0500 Received: from mout01.posteo.de ([185.67.36.65]:43605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLp9-00030T-Sp for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:42:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3C78A240460 for <60559@debbugs.gnu.org>; Thu, 5 Jan 2023 09:41:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672908122; bh=X9ehnHxv6WfORdTKIqVIZt4saXIyJyNGYtP03vd5nfY=; h=From:To:Cc:Subject:Date:From; b=DmY870vCvySqOImvlP1BCbPBH68u1pU2Mwhx/Eds1PMe1qSts1zLbx8wM97cZc5Nf CRUArCVMLBdf86OwcbbmjgqsJX45xTFCn5ThdWmdFjCF/x+oyojBQ5FamMlCPl4faC IMRLpB6+gb7GlE8Q/5g0GqaXqcDT2pl4KVyJIElveEwIbo4J9eUG4zvdigUsUDExXg 3QXge0ebkhS1JS0mJKauzCuoQkxNK7DEIcBn2a0QaSoIIm40mzmJEEP8VvxL67L/51 JNd777aAAIX7lLTn34rxmpFGYKp+/6fNHdrsFG9+/mUgmS4iaNmJmqwoDCsOBjHYmP m3vcygTNKjXFw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nng1y5SBLz6tmB; Thu, 5 Jan 2023 09:41:58 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <871qo9idby.fsf@localhost> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> <87cz7tif7a.fsf@localhost> <837cy1xu8b.fsf@gnu.org> <871qo9idby.fsf@localhost> Date: Thu, 05 Jan 2023 08:42:31 +0000 Message-ID: <87y1qhgyo8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) Ihor Radchenko writes: > The above steps only work on master. That said, is the approach when require produce side effects a good approach? I have been told in another thread that side effects during loading should be avoided if possible - they may create surprises to users. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:44:34 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:44:34 +0000 Received: from localhost ([127.0.0.1]:50227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLrW-00034J-EZ for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:44:34 -0500 Received: from heytings.org ([95.142.160.155]:59648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLrU-00034B-TQ for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:44:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1672908271; bh=U3n4XZl+xRTbm0/M3gbnkNGcCxQAaaDfq05cwlZrLUI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=jaITkV0zIiWlqFeqMUkWZuF5tl4ZMgTX8+4VWpeIqIbI2QygBwOyISDCGvPMoXW/E PyLUqSg43FvT3xOFsjhHAWQRwMwKxOL/OfJzZtkAbQ5fRkrJvZGAEriAXul/Sjd+OP B3AGErrKhQEjGy7OIE/M9JLuG2ktn4q4xBNhXnYnMLuNIwuTfIvfiQzYQo+xxQAmLa d2gtgc8FCZuxiF8GeKnvmLyZ2b2lLjFrsEqCuurZvtFUvvVrZfWm77ongk1buL/D/H NOd61eaZC1cqybrb49qsiOfosE3wLDxsiIgC3w+aHsiyOJ9r675Z8fLBfUskEcmXRb 6MVPzHibPwsDg== Date: Thu, 05 Jan 2023 08:44:30 +0000 From: Gregory Heytings To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83h6x5xym7.fsf@gnu.org> Message-ID: <8dea9f3e0ea979c713da@heytings.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 60559 Cc: Fu Yuan , 60559@debbugs.gnu.org, Theodor Thornhill , mardani29@yahoo.es, =?UTF-8?Q?Jostein_Kj=C3=B8nigsen?= , Stefan Monnier , Lars Ingebrigtsen , epg@pretzelnet.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.0 (-) > > So here's a suggestion for such a solution: we make all the *-ts-mode's > optional. That is, we don't add any of them to auto-mode-alist unless > the file *-ts-mode.el is loaded, and we document them all in NEWS and > the user manual as optional. users who want them will have to manually > activate them. This way, the original use case that started this bug > report is automatically solved, and the other use case, where the user > intends to activate one of these modes, is also served by showing the > warning, which in that case is perfectly justified: the user asked for > something that we cannot do, so we warn him/her. > I suggest a slightly different solution: add a global minor mode, say 'ts-modes'. Users would only have to add (ts-modes 1) in their init files, and the logic would be: (treesit-available-p) ts-modes nil nil => do nothing nil t => warning t nil => use available tree-sitter modes t t => use available tree-sitter modes This seems more future-proof: otherwise users who want to user the available tree-sitter modes would have to require all such modes. ATM there are only 19, but Emacs 30 could very well have twice or thrice that number of tree-sitter modes. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:48:14 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:48:14 +0000 Received: from localhost ([127.0.0.1]:50231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLv4-0003DH-1S for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:48:14 -0500 Received: from heytings.org ([95.142.160.155]:59680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLv2-0003Cy-3N for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:48:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1672908491; bh=VV1IGB/do2hsQhIZKI4EZm1BbBzmVGKjjb3QrJxWKV0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=EBj1eE/bu+/vDkFe4EhACY70mEswu/xBDKicd4PpFGxhBAXfKVdwcVkM/BRw0fWiN DVTWdRSC0VzfyWi2y8opU3uKSUvWtO1Bke05YDIpzrTMOirW2rG8CHdLEjYnHZ5D5Y QmXRidx8cXZGDiJzW/ztaV8Hz+y7h+YeYnnJUzyIRWFooy4XXbp4Ca8Wo7x/7+Y8Y2 VWKqehh9cJXWWKAzBC8Y63OGZcjPd+prWhNoIpoP3J3podtieYsvwPyzfIt5zIDtSv 83APhkuVuvPASQ23f0H+p/NUyN2hbX+LokjTFs+55KbfqW/k6wVDwP5jxT8k9wsaox eE71lcT+NltjQ== Date: Thu, 05 Jan 2023 08:48:11 +0000 From: Gregory Heytings To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <8dea9f3e0ea979c713da@heytings.org> Message-ID: <8dea9f3e0ec5d0bfd26b@heytings.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <8dea9f3e0ea979c713da@heytings.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 60559 Cc: Fu Yuan , 60559@debbugs.gnu.org, Theodor Thornhill , mardani29@yahoo.es, =?UTF-8?Q?Jostein_Kj=C3=B8nigsen?= , Stefan Monnier , Lars Ingebrigtsen , epg@pretzelnet.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.0 (-) > > I suggest a slightly different solution: add a global minor mode, say > 'ts-modes'. Users would only have to add (ts-modes 1) in their init > files, and the logic would be: > > (treesit-available-p) ts-modes > nil nil => do nothing > nil t => warning > t nil => use available tree-sitter modes > t t => use available tree-sitter modes > > This seems more future-proof: otherwise users who want to user the > available tree-sitter modes would have to require all such modes. ATM > there are only 19, but Emacs 30 could very well have twice or thrice > that number of tree-sitter modes. > And perhaps we could even add a third value for ts-modes, say "no". In that case tree-sitter modes would not be used even if they are available. Users may prefer, for one reason or another, to not use them even if they are available because their system administrator installed them. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:52:46 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:52:46 +0000 Received: from localhost ([127.0.0.1]:50236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLzR-0003K9-MB for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:52:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLzP-0003Jw-Of for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:52:44 -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 1pDLzI-0000mr-6Q; Thu, 05 Jan 2023 03:52:36 -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=nxoIzhK9s1ildrs44Dx+tcyYFr8h2N1mOyyWcFbAiEc=; b=DiY7UDrrbGCT pNFRqBFv6REVGQZ5ynbvN6FQqNAC8l+kTDWyh2GyqIgDmXb3CQ+9M+Io1BJtS6+rkF+pVmty6ljhh UEJgadL8HfhT6GIAMJZQzknisRgt+WmxANAAagpvUr995t5ubIVUnzrN+VQl+5H0kfRh2VKBaUn1b Q3RqcpoGEDbcZcU6HdpaOZcjx0r+eWCs/2zk1vHsqalMWYCb4UAiayGJ8tmOtLd9LWrrc291mXZlF RFmjRMz+3xvLxq1V4uAjYPrlEvj1bLL1VudIDPlbTUHhBANFOoyXQcr6cK3IaplDsXzx9XzmNV+Bi JWRnOOWvv6jfOLcGHwF0Hg==; 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 1pDLzH-000197-9O; Thu, 05 Jan 2023 03:52:35 -0500 Date: Thu, 05 Jan 2023 10:52:48 +0200 Message-Id: <834jt5xt0f.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <871qo9idby.fsf@localhost> (message from Ihor Radchenko on Thu, 05 Jan 2023 08:40:33 +0000) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> <87cz7tif7a.fsf@localhost> <837cy1xu8b.fsf@gnu.org> <871qo9idby.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) > From: Ihor Radchenko > Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, > theo@thornhill.no, jostein@secure.kjonigsen.net, 60559@debbugs.gnu.org, > epg@pretzelnet.org, mardani29@yahoo.es > Date: Thu, 05 Jan 2023 08:40:33 +0000 > > Eli Zaretskii writes: > > >> Auto-completion. > >> > >> 1. emacs -Q > >> 2. M-: (featurep 'go-ts-mode) ; => nil > >> 3. f go-ts- mode > >> 4. M-: (featurep 'go-ts-mode) ; => t > > > > I cannot reproduce this with toml-ts-mode on the emacs-29 branch. > > go-ts-mode is still the default for Go files, but toml-ts-mode is not > > the default for TOML files. > > I just checked, and I cannot reproduce on emacs-29 branch with both > go-ts-mode and toml-ts-mode. in (3) simply don't trigger > completion (and thus no auto-loading). Presumably because auto-loading > on completion is not yet available. > > The above steps only work on master. Which change on master has this effect? I cannot find anything in NEWS. Moreover, doing the above on master with c-ts-mode and toml-ts-mode I cannot reproduce the behavior you describe. Only go-ts-mode does reproduce it. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:54:16 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:54:16 +0000 Received: from localhost ([127.0.0.1]:50241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM0u-0003Mg-6k for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:54:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM0s-0003MS-73 for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:54:14 -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 1pDM0m-0000y0-Ik; Thu, 05 Jan 2023 03:54:08 -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=ID/IrYJ6Unx0ff/PFuXDVMqjDVFkPWwOEOOFnDnkTk0=; b=f8EefsE55dst F7WUjLKQF+nUwMVq7ZSlwWkUIMt6cKDsrgo7I7l264cQosiZAvgqlaM87P6iqAh+CFupxF5gPYFBc /LwQ1wdItdsCZ3lMm0+s4q5w85S8bHiJRqM8J3otnj6JB3SQF6WRivQP5qO6GuvVsXx1bIwhPzTmu k+WoTOspwUzcSVr71IsQxxuf14CC2Mv2bYfVeF2qDgGOtmv3hUnhUHQpSmB0FpKnDgACa4DMyE4ue HF0l8ZuP/W6i10oSy71bYQ+o+5Y/ryjnkzYZFyXknbRF/YYXycHJerNcTgB2N8+tlZjAKTOVzn5fL R/0uod76MKnh39BKpHrK+g==; 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 1pDM0m-0001Gh-1g; Thu, 05 Jan 2023 03:54:08 -0500 Date: Thu, 05 Jan 2023 10:54:21 +0200 Message-Id: <83358pxsxu.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87y1qhgyo8.fsf@localhost> (message from Ihor Radchenko on Thu, 05 Jan 2023 08:42:31 +0000) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> <87cz7tif7a.fsf@localhost> <837cy1xu8b.fsf@gnu.org> <871qo9idby.fsf@localhost> <87y1qhgyo8.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) > From: Ihor Radchenko > Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, > theo@thornhill.no, jostein@secure.kjonigsen.net, 60559@debbugs.gnu.org, > epg@pretzelnet.org, mardani29@yahoo.es > Date: Thu, 05 Jan 2023 08:42:31 +0000 > > Ihor Radchenko writes: > > > The above steps only work on master. > > That said, is the approach when require produce side effects a good > approach? I have been told in another thread that side effects during > loading should be avoided if possible - they may create surprises to > users. Yes, this "should be avoided if possible". So if someone shows a way of doing this some other way, but without adding any additional complexity wrt what the user should do to activate these modes, I'm all ears. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 03:56:12 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:56:12 +0000 Received: from localhost ([127.0.0.1]:50246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM2l-0003Pl-QB for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:56:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM2j-0003PY-SE for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:56:10 -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 1pDM2e-0006c9-2g; Thu, 05 Jan 2023 03:56:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=syLV8K9aYyQ5h+NsOW6bYrg2jbUXwuuxTxVj5J6tIUA=; b=VbjrSdl/cQD3UlVVUexl Bit2+0TPZuWmdKn0uwhPF4X+EANI7TXs5aS/bJYAa6KWjRI0Cc3479oAs5caC6CfxYSRXTFEGYvpS STC64VcsRJSNo2OFwy41j1XqO19oCEFhRLjJrDFpjFKzMk2MyT2P9lD9du9+m2HqXwqR2RTw7/Tvb Wd0fB8qI+jE9bSkbzgZxUJuLL3h1/LyvufntpezT6kCUQ6/LjFkggmJEmMdSwzvPkGYQBKHtjeaSD 8y2oCQhL/npPvf/wzhJb814jSiA3FnDSBNhpMMgEQZu7+EnICL/AD3XX62NuSNebBLzyqS0SOWztF E4o6DXOIBuuXAQ==; 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 1pDM2c-0001aT-HT; Thu, 05 Jan 2023 03:56:03 -0500 Date: Thu, 05 Jan 2023 10:56:16 +0200 Message-Id: <831qo9xsun.fsf@gnu.org> From: Eli Zaretskii To: Gregory Heytings In-Reply-To: <8dea9f3e0ea979c713da@heytings.org> (message from Gregory Heytings on Thu, 05 Jan 2023 08:44:30 +0000) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <8dea9f3e0ea979c713da@heytings.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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, 05 Jan 2023 08:44:30 +0000 > From: Gregory Heytings > cc: Fu Yuan , Stefan Monnier , > Lars Ingebrigtsen , Theodor Thornhill , > Jostein Kjønigsen , > 60559@debbugs.gnu.org, epg@pretzelnet.org, mardani29@yahoo.es > > I suggest a slightly different solution: add a global minor mode, say > 'ts-modes'. Users would only have to add (ts-modes 1) in their init > files, and the logic would be: > > (treesit-available-p) ts-modes > nil nil => do nothing > nil t => warning > t nil => use available tree-sitter modes > t t => use available tree-sitter modes > > This seems more future-proof: otherwise users who want to user the > available tree-sitter modes would have to require all such modes. ATM > there are only 19, but Emacs 30 could very well have twice or thrice that > number of tree-sitter modes. Thanks. This was already considered. I don't like asking users to customize a list as a means of activating an optional mode. I also don't think we have enough information for committing ourselves to such a solution at this stage. So I'd prefer not to do this on the release branch. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 04:00:29 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 09:00:29 +0000 Received: from localhost ([127.0.0.1]:50256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM6v-0003YL-4D for submit@debbugs.gnu.org; Thu, 05 Jan 2023 04:00:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM6s-0003Y7-Oe for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 04:00:27 -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 1pDM6m-0007nE-Mu; Thu, 05 Jan 2023 04:00:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=f9ns2of39OTIpLi0kXr/aJ+35pSUAw8HVavaRcDDLBE=; b=oe/rRG3Tmfu2wR7kAx74 V69QOaAMXskGKI7tmJ9bElRaD+b3CRja4/SKLsXrSihtzqA0G5HpI4+53ly9eZ6h2Xmv6Ztpj1UUH aMuT3iHY9Tn9v59SGkojoYTKPJ1dtaQVF31wSL4Qf6k/IhxklaE15k/HRHQ2U0JtZ7YIMMWe5Ou8h XPQwVyNOLNt0UxrIpm5NCDLxUFkvXk/jnpbTAz6gKfZH7mS2BIDPF3zQw20ne7iQ6Hnpk0P0FRfkz 5l3RHZcf2dqksN3JLT1Ks4FIeaFQBnq5koYpXCt6eQs7zaqqhIHJ8h2LY9uJnCinU4XLEBJACOSsS T0g4RDyVTYM24Q==; 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 1pDM6j-0007aZ-1G; Thu, 05 Jan 2023 04:00:20 -0500 Date: Thu, 05 Jan 2023 11:00:31 +0200 Message-Id: <83zgaxwe34.fsf@gnu.org> From: Eli Zaretskii To: Gregory Heytings In-Reply-To: <8dea9f3e0ec5d0bfd26b@heytings.org> (message from Gregory Heytings on Thu, 05 Jan 2023 08:48:11 +0000) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <8dea9f3e0ea979c713da@heytings.org> <8dea9f3e0ec5d0bfd26b@heytings.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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, 05 Jan 2023 08:48:11 +0000 > From: Gregory Heytings > cc: Fu Yuan , 60559@debbugs.gnu.org, > Theodor Thornhill , mardani29@yahoo.es, > Jostein Kjønigsen , > Stefan Monnier , > Lars Ingebrigtsen , epg@pretzelnet.org > > > I suggest a slightly different solution: add a global minor mode, say > > 'ts-modes'. Users would only have to add (ts-modes 1) in their init > > files, and the logic would be: > > > > (treesit-available-p) ts-modes > > nil nil => do nothing > > nil t => warning > > t nil => use available tree-sitter modes > > t t => use available tree-sitter modes > > > > This seems more future-proof: otherwise users who want to user the > > available tree-sitter modes would have to require all such modes. ATM > > there are only 19, but Emacs 30 could very well have twice or thrice > > that number of tree-sitter modes. > > And perhaps we could even add a third value for ts-modes, say "no". In > that case tree-sitter modes would not be used even if they are available. > Users may prefer, for one reason or another, to not use them even if they > are available because their system administrator installed them. We discussed a minor mode approach, and discovered it doesn't work well enough, because different modes need different considerations. Moreover, silently doing something depending on whether treesit-available-p returns nil is not the best UX, as I explained up-thread. Actually loading a mode that the user wants is much more natural and easy. P.S. Please disregard the previous email about customizing a list: I was confused when I wrote it. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 04:04:42 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 09:04:42 +0000 Received: from localhost ([127.0.0.1]:50260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDMAz-0003ep-W0 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 04:04:42 -0500 Received: from mout02.posteo.de ([185.67.36.66]:43429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDMAy-0003ed-PS for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 04:04:41 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 45D5F24064F for <60559@debbugs.gnu.org>; Thu, 5 Jan 2023 10:04:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672909475; bh=eE1Q18HwW86gtdlRO/Kfub4ypSir2LhnSLlhWp9jW+w=; h=From:To:Cc:Subject:Date:From; b=k/TlvdxQ/zTcGGxH1aZe5XFdKtGCxc+oDJe8KUIsXIkMukroObCo953uSTh84wJJ4 hXfTwaoTbj98O+1lDzPyQ/0eETUbaMPSgHOQU04DXMNe/ARIb9JSYMmNFAWr6SZCLj UlbYa4DbvQLQGbdvy4sSp59QyT5GUOFrCDIZl+UHizQYj6dqwYfM514sMSN1RUEEc3 KCfY4wMaQxfsqfD4Puz5643xBsDrUgjVg/JaYglQwKG2ptimcT+Yu1hJyTSR+HKqr0 6o3wvjsxQIhswoDrLpng+ShvpfME7U4w+IlIMJ/MKMZlsd1Io2I+3jLUAAWWqmuQHI h7kOp8g8MBu2A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NngWz1PW4z9rxB; Thu, 5 Jan 2023 10:04:30 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <834jt5xt0f.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <87ilhlihov.fsf@localhost> <83cz7txw5t.fsf@gnu.org> <87cz7tif7a.fsf@localhost> <837cy1xu8b.fsf@gnu.org> <871qo9idby.fsf@localhost> <834jt5xt0f.fsf@gnu.org> Date: Thu, 05 Jan 2023 09:05:03 +0000 Message-ID: <87tu15gxmo.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559 Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.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 (---) Eli Zaretskii writes: >> The above steps only work on master. > > Which change on master has this effect? I cannot find anything in > NEWS. I am referring to `help-enable-autoload'. I think there were some fixes or improvement to `help-enable-autoload' behaviour recently. > Moreover, doing the above on master with c-ts-mode and toml-ts-mode I > cannot reproduce the behavior you describe. Only go-ts-mode does > reproduce it. I confirm. I don't know why. AFAIU, `help-enable-autoload' should trigger autoloading in all three cases according to its docstring. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 08:17:46 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 13:17:46 +0000 Received: from localhost ([127.0.0.1]:50508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDQ7u-0006hh-Hb for submit@debbugs.gnu.org; Thu, 05 Jan 2023 08:17:46 -0500 Received: from mail-ej1-f45.google.com ([209.85.218.45]:43652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDQ7s-0006hS-Mx for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 08:17:45 -0500 Received: by mail-ej1-f45.google.com with SMTP id kw15so89851076ejc.10 for <60559@debbugs.gnu.org>; Thu, 05 Jan 2023 05:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=KLJtk9LJlXjsWmm+dyOFY5yHsYLh5llyzjx5A2qcJYk=; b=OFT1+D1Y2PE3dd827Lh4Fp5KILjXIwn0/Sz4Qouzz8NHkcGog112dwVeiT1Vq4EK24 /canLHCyuUgjB8Jzw0eQLv9ttuj7Uw/JRssCpv1AbuA5otG3bcGJIHYitaIjevOJu2ms rncQXwxuQ2v2pS/hAAbM5jxCOJ60mfAPnR+fDCng5CqHNtHgIS8hJVPKVFyAjxL/vEAo MwbJR1qadM2gQFbEfsWay1uUVasPB1j/tpnK6AucesNvLIGffP+IdjWVG/WfO84blDz3 3zklFIga8GZBcHAOBFWOVRFo6XRIy3dILRy7uum4juvRcPZzEqoJq5qRIiinM+Ilo9+8 4rjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KLJtk9LJlXjsWmm+dyOFY5yHsYLh5llyzjx5A2qcJYk=; b=poKtxoR+BvVQL2kU6cNsx4Z957KF+KF6+NWEt333kOZWCwrKA0Yq1Y1KHBgqTW32kX RkQ/WlzQe/koPsECX9T8gWijstYQxHJ1kdcHtLCdHEMIH1oqdqMyD4Ja08+bjpK4FTMR 6sxnRcLTdu6Z+I7rMK1G6TvDsr7+oFriIuQR3CL+OmUZDiG50b+hFQ6m5c1OnnkxRjm7 dFEFOxJKaqJMW7FRJH8xARsNYdE5+dNETrCD0j1r5EmyTJQkFh/iNFwn+21soLCZ17lK IrY4UpThKwCf8vpJSWB/jK8KXqTOIUesG4SEQOu7ZIRTGZ0YvJLbdROyODf32Cf2W/2a Ut/g== X-Gm-Message-State: AFqh2kpB6J75kX3d77ppH+qsDanIELMHwwQ8c9n/NBXBuLU0x2cjOV3g uv4VW2OTs9Xwbpuy2uNKRnE= X-Google-Smtp-Source: AMrXdXsQXrJ2JK1dpegErfKMThBilBkxuFw65PBcwaQKurUz1lf5/AHRWPEIaC5F0ISLnmfCWD9DDw== X-Received: by 2002:a17:906:700f:b0:7c0:d1cb:2165 with SMTP id n15-20020a170906700f00b007c0d1cb2165mr44286031ejj.56.1672924658807; Thu, 05 Jan 2023 05:17:38 -0800 (PST) Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b22-20020a170906d11600b007c09d37eac7sm16510462ejz.216.2023.01.05.05.17.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 05:17:38 -0800 (PST) Message-ID: Date: Thu, 5 Jan 2023 15:17:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam Content-Language: en-US To: Eli Zaretskii , Fu Yuan , Stefan Monnier , Lars Ingebrigtsen , Theodor Thornhill , =?UTF-8?Q?Jostein_Kj=c3=b8nigsen?= References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83h6x5xym7.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, mardani29@yahoo.es, epg@pretzelnet.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.9 (-) On 05/01/2023 08:51, Eli Zaretskii wrote: > So here's a suggestion for such a solution: we make all the > *-ts-mode's optional. That is, we don't add any of them to > auto-mode-alist unless the file *-ts-mode.el is loaded, and we > document them all in NEWS and the user manual as optional. users who > want them will have to manually activate them. This way, the original > use case that started this bug report is automatically solved, and the > other use case, where the user intends to activate one of these modes, > is also served by showing the warning, which in that case is perfectly > justified: the user asked for something that we cannot do, so we warn > him/her. Personally, I'd rather the users be made aware that they can install such-and-such grammars and enjoy good support for the file types they just visited. I understand that it can be a bother for people who are used to just editing such files using fundamental-mode, but they could similarly complain if we added a major mode (for a given file type) that is functional but still different from the "last 25 years". So I agree with your original assessment that it's not a bug. What we could do here, though, to reduce the aggravation: - Move the warning to *Messages*. It will be slightly less noticeable, but won't occupy "half the screen" either. and/or - Add a new defcustom which would allow people to silence the tree-sitter related warnings altogether. tree-sitter major modes without available grammars work more or less like fundamental-mode. Or we can just recommend such users edit their auto-mode-alist to associate fundamental-mode with those file types. That only takes a few minutes. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 09:02:18 2023 Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 14:02:18 +0000 Received: from localhost ([127.0.0.1]:50525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDQoz-0007p6-QM for submit@debbugs.gnu.org; Thu, 05 Jan 2023 09:02:18 -0500 Received: from out-195.mta0.migadu.com ([91.218.175.195]:26321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDQox-0007ox-Sp for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 09:02:16 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1672927332; 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=gM3jgEPD+UASJYC76fhNlLZPP9fOeVRkT+zYdbAglmk=; b=Q9k3qtc83vi70Mnb1X48h1TpbvvXEf/tf1/BjQgWrekyXUK8X//ZjtPRcV6SZEihvu67B6 +6rCEtEJEXDzUseq/KyRymUVuh/fG/ct1pDThfJL2O6OgGAAsefVpHfEGBCeZq5+C8m4rc hrV+TqC14tumUakq/mKVTHecUrFaiAnFwGQcEwhcH73FPoQqfx4WTuE5Bu0dUxVbdx7rTO EJS1YjiAPD++YqjLvjfxDgbW8oUTtd4dET+AwhhJLI8T/ZaHYn1KPCOvErlDiz/cQSkBhT GqDKLk5yedEVcoOcPNbpVtLfeypgDtsh82iHtGJSTpm+uABJnCtwwx0dL50vFg== From: Theodor Thornhill To: Eli Zaretskii , Fu Yuan , Stefan Monnier , Lars Ingebrigtsen , Jostein =?utf-8?Q?Kj=C3=B8nigsen?= Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-Reply-To: <83h6x5xym7.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> Date: Thu, 05 Jan 2023 15:02:05 +0100 Message-ID: <87sfgp9j1e.fsf@thornhill.no> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60559 Cc: 60559@debbugs.gnu.org, epg@pretzelnet.org, mardani29@yahoo.es 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.0 (-) > So here's a suggestion for such a solution: we make all the > *-ts-mode's optional. That is, we don't add any of them to > auto-mode-alist unless the file *-ts-mode.el is loaded, and we > document them all in NEWS and the user manual as optional. users who > want them will have to manually activate them. This way, the original > use case that started this bug report is automatically solved, and the > other use case, where the user intends to activate one of these modes, > is also served by showing the warning, which in that case is perfectly > justified: the user asked for something that we cannot do, so we warn > him/her. > > This is a retreat of sorts, but I think it strikes a better balance > wrt user expectations, assuming not everyone will build with > tree-sitter. > > Any comments or objections? If not, I will do this in a couple of > days on the emacs-29 branch. Sounds good to me :-) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 06 00:23:20 2023 Received: (at 60559) by debbugs.gnu.org; 6 Jan 2023 05:23:20 +0000 Received: from localhost ([127.0.0.1]:53485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDfCI-0008RR-QX for submit@debbugs.gnu.org; Fri, 06 Jan 2023 00:23:20 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDRi2-0001GD-2u for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 09:59:11 -0500 Received: (Authenticated sender: epg@pretzelnet.org) by mail.gandi.net (Postfix) with ESMTPSA id 73B404001A; Thu, 5 Jan 2023 14:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pretzelnet.org; s=gm1; t=1672930743; 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=tizCqdjX4CBAgl4vWcQt3Yh7WHuSiU+9RR53RFEHMSM=; b=eKWdq9/1AvDoQVri3QHWWIzAcMQeFzGmAjkrYk3rmRTiop7cSUMkuCOWAtotu6EXtQin9u mh/bUmoZtcLRk82aNRT4Y/cSU8SoyRz62V2n+FAGWQAC+3bpYxfQSFRJZQohfJzEIYWk53 occAG1c/ykwJ86fCqJ6zw6XemjNisePsF77j1HxJ0OqhARKmdJjgeEDWX1nho5BBonuIzc jvi8lWjlPRTRm/AVrKNgH/FfRDB2rVnQ0Q+8P4p5loL3laGi3GA35Ld6dHzXRzqcmh8Pjp 63QVKA/2gl0ftZ5+JapKKLrAEGd3ZVZuAqfkafNtiG8PQaHntGl6DRoN8A57IA== From: Eric Gillespie To: Eli Zaretskii Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam In-reply-to: <83bkndxvi7.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> <87358q82fx.fsf@gmx.net> <83ilhlxz2g.fsf@gnu.org> <867cy1a0vj.fsf@mail.linkov.net> <83bkndxvi7.fsf@gnu.org> X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 28.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <89479.1672930739.1@hassadar.pretzelnet.org> Date: Thu, 05 Jan 2023 08:59:00 -0600 Message-ID: <89480.1672930740@hassadar.pretzelnet.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60559 X-Mailman-Approved-At: Fri, 06 Jan 2023 00:23:17 -0500 Cc: 60559@debbugs.gnu.org, stephen.berman@gmx.net, Juri Linkov 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 (-) Eli Zaretskii writes: > thanks You're welcome. > This is not a bug. Okay. > Because I don't want to risk any breakage by last-minute changes. Do > we want to release Emacs 29 soon, or do we want to keep developing it > for another year? It seems to me the safest approach for a release is the conservative approach. The more gradual a change, the less likely an embarassing release or rushed follow-on patch release. All this discussion has been interesting, but it seems to me it is mostly focused on a world where not only tree-sitter is common, but all those grammar libraries are as well! I think very few emacs users in 2023 live in that world. If emacs was configured with tree-sitter, it seems productive to warn the user when tree-sitter grammars are missing. It seems likely that user intended to have tree-sitter. When emacs is NOT configured with tree-sitter, it seems counter-productive to warn about missing tree-sitter. I even pass --without-tree-sitter to configure now. It seems particularly surprising to me that I explicitly tell emacs "don't use tree-sitter" and then it immediately starts complaining to me that it doesn't have tree-sitter. Thanks everyone! From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 17 08:01:44 2023 Received: (at control) by debbugs.gnu.org; 17 Jan 2023 13:01:45 +0000 Received: from localhost ([127.0.0.1]:36063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHlay-0004r2-OJ for submit@debbugs.gnu.org; Tue, 17 Jan 2023 08:01:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHlav-0004qk-7B for control@debbugs.gnu.org; Tue, 17 Jan 2023 08:01:43 -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 1pHlap-0004Ey-T9 for control@debbugs.gnu.org; Tue, 17 Jan 2023 08:01:35 -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=7q6lEDvVkW3/eXqGkFkZF+nAe2b/StG3LVo9S0B2Y4w=; b=USkrZWdEti3X yefTdVdzqAqJsmtXA5e9Bjs5cEd2kbTMz4FVRh1E1FiKftTFagnhCGkU7VMFKNh1azGhyXl0sTw6J GJNSmNa0t4e5/bTNl3p6QmagUlM4Nw7LYF+SL36Nrswq+S5muwyYAz7lA3XoxDgbBoigRkYA/Y+Hm GRtGKBrXXn9vcj1kY5HE/V0tkekiTq5bQqBjGTYkhCmpRhrmc6slEf5w/ubOzQ7wgC2qRKEB4qIvR DYoCQsdiMQ/6wM7osZxrnnjNweTkCISFiBLmNEdZUhDOZPbrMMkk0pAv6GfzBWzFy6vfVu5gQZjgB c0KUyz5fLapRqWcDa9Bigw==; 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 1pHlao-0007qD-P0 for control@debbugs.gnu.org; Tue, 17 Jan 2023 08:01:35 -0500 Date: Tue, 17 Jan 2023 15:01:45 +0200 Message-Id: <83v8l52u2u.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org (GNU bug tracker automated control server) In-Reply-To: (control@debbugs.gnu.org) Subject: Re: Processed (with 1 errors): Re: bug#60874: References: <83wn5l2ule.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) severity 60176 normal tags 60559 merge 60559 60176 60874 thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 22 08:24:06 2023 Received: (at 60559-done) by debbugs.gnu.org; 22 Jan 2023 13:24:06 +0000 Received: from localhost ([127.0.0.1]:50917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJaKL-0007vZ-Pw for submit@debbugs.gnu.org; Sun, 22 Jan 2023 08:24:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJaKI-0007v2-W6 for 60559-done@debbugs.gnu.org; Sun, 22 Jan 2023 08:24:04 -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 1pJaKC-0003iw-NG; Sun, 22 Jan 2023 08:23: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=+fo+HFgXsCxTXKwEVquxc5LeGi4kATt2xgTyoYKjsKg=; b=sM7nkT6yh91K 6m8HdWt7kNzDdcoBHr5bhI3NjLI/y/+8nkmaXUTOpUXt9G5mJbKVC0K8/F2Eic1QqdVvgsG8Ng0Qb MCalFb/YOgD1e+ggba9DG11Lksfw9yF9+mGY/se+iOWluYGAvIn9hJRe0IT50ahk7L9ZtQWrBgm/j NfWNgpKqL5d18D90t/zZ3hy8KvlCFN4PNrH/2JpU8uIUt/No61bOW8K+KEuzondPlmPgi2wzLKbr4 C7hBXv72qHpF/hSIzyfH6sXLSHz0rRDbG3b7j6ekANcBbNsgwPC21B9uGtsRsEWUoRqeuSXeLx2yz XRX+gtUCXNSVV5moF0tdEA==; 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 1pJaKC-0007lc-6i; Sun, 22 Jan 2023 08:23:56 -0500 Date: Sun, 22 Jan 2023 15:24:01 +0200 Message-Id: <83o7qqk8i6.fsf@gnu.org> From: Eli Zaretskii To: Eric Gillespie In-Reply-To: <89480.1672930740@hassadar.pretzelnet.org> (message from Eric Gillespie on Thu, 05 Jan 2023 08:59:00 -0600) Subject: Re: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> <87358q82fx.fsf@gmx.net> <83ilhlxz2g.fsf@gnu.org> <867cy1a0vj.fsf@mail.linkov.net> <83bkndxvi7.fsf@gnu.org> <89480.1672930740@hassadar.pretzelnet.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60559-done Cc: 60559-done@debbugs.gnu.org, stephen.berman@gmx.net, juri@linkov.net 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 (---) > From: Eric Gillespie > Date: Thu, 05 Jan 2023 08:59:00 -0600 > Cc: 60559@debbugs.gnu.org, stephen.berman@gmx.net, > Juri Linkov > > All this discussion has been interesting, but it seems to me it > is mostly focused on a world where not only tree-sitter is > common, but all those grammar libraries are as well! > > I think very few emacs users in 2023 live in that world. > > If emacs was configured with tree-sitter, it seems productive to > warn the user when tree-sitter grammars are missing. It seems > likely that user intended to have tree-sitter. > > When emacs is NOT configured with tree-sitter, it seems > counter-productive to warn about missing tree-sitter. > > I even pass --without-tree-sitter to configure now. It seems > particularly surprising to me that I explicitly tell emacs "don't > use tree-sitter" and then it immediately starts complaining to me > that it doesn't have tree-sitter. This annoyance should now be fixed on the emacs-29 branch, and I'm therefore closing this bug (and the two others that were merged to it). From unknown Wed Jun 18 23:07:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Feb 2023 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator