From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 05 16:18:46 2025 Received: (at submit) by debbugs.gnu.org; 5 Aug 2025 20:18:46 +0000 Received: from localhost ([127.0.0.1]:57040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ujO7S-0003ky-8O for submit@debbugs.gnu.org; Tue, 05 Aug 2025 16:18:46 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45674) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ujO7O-0003kW-50 for submit@debbugs.gnu.org; Tue, 05 Aug 2025 16:18:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ujO7B-00018A-1t for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2025 16:18:29 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ujO77-0007GQ-N0 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2025 16:18:28 -0400 Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-87653e3adc6so134670839f.3 for ; Tue, 05 Aug 2025 13:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1754425101; x=1755029901; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=qRS+TA6OguKdZ/clJ8XHn7yovXcZDiJNMnPyyxalAZw=; b=1HxVWNowW8VX62xIqqFqWWnntwNFOYNjDdRGjDhewZIyYrvRWfgKDFiqhFskm5D+aj Pdph39MkVSJ5u04x4EP6wdALhqfKpU4WyKK8yJ8NVoWMpDV07SYzTGb5UlcY01x2ANss M/foQCVXE8p5qfcvvDwDFs5CzdjNHjdfJouFDdrSVvd3zfSIaRe8NneSmu0RJH85Ocyz r8LEdkbrFD0lRJQoE68++RSqc08S/hR+zfuBMqScQeWelM+c9pRvcCpcT4b9rBUnLsIB 5ZhTHX2jiTBaP4CIlliuRWPF/NYuJJyPzAyfRh03klyItLKurStgdTB3UX1aRiJm/fZQ pEzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754425101; x=1755029901; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qRS+TA6OguKdZ/clJ8XHn7yovXcZDiJNMnPyyxalAZw=; b=A8aCSLUApfK5Zp8RpchvqsJBq1uygNcUol8UmR1+E+6Ct0vFxhhOnEPs1uvPC32dkn n0Sk1g0C8lHiDXtQBwgZy0Mt+K0Z/mRhEesSQqN0z3u/nuUK557yQIeu29DwUSFYmJxT DKJpqvbJJAe61oGUDTnVRxaDpsFJrU/8TDqOrEO1MBrhRQaim6Lle3nNo54fKgjJEfkA 7jt26GKbGeKzxXfutznHXMRI+7xmBaoikbNcS3I0VjYfZg2YPIEFmG4Vpwu8Bph67hhk 3cPWJoY6Eynq8/njKlP06Mk7R7upPXr7KZxyep+gKj0SS9RMGUrKlM3agR87Cl7AdhYA tnIg== X-Gm-Message-State: AOJu0YzcSKbonymHBd3VvJJGMJ9771KwqZ1BzIeZoAX9d5EfVKZ9jUB5 iwLCkOrC6GVwrWq0ja7BgxP/ZyHmLYzLdXnl6zdRihjyNGjiPMTCq8/cscHwZci0opHjthlzR5B sgnTC X-Gm-Gg: ASbGnctAXcTlNJH/W9yz7Fi55MqNhbh9W8rZJlVRLchP6ZZ/ooNCX1Grh6UFU216wEn y+njiXia/CamVriVBA1gk2BtSi2yQ4Y9FdQG8ma52RRxTJf6p2CHZ1aq17VPQQBdZ3xPb46Znas U3U0Cs0RmerwbR1DPuAGhL4QWDo4vMfDkElLHMHJd9N2WC2Jbv/INuxRQ4zs0DJs00VqW3tiqBR NXDFTfBmv/sCr6RN/yfaVsrnatdvte5GztFADKCEeFoLmW/SluNDgHzLqFmi7tISoMS/0yhD/2J /H5ZdjWRHeqT070TmuSkUpg/nQDkRKg/bhaxWmGZfkooDBHhAQ6IvnD1HycXKK3ohyYDbPCteV5 E0E59btxUlb7CubpZK3ckk2FRGuCrr1nGGU5UIDvs0q4MrHY0rmKRLZtg4eyJiH4jAWZHKME= X-Google-Smtp-Source: AGHT+IFZdYkw76GnJE2uJ7GXX8b8o/x0Ka83iycoXBxOacDSi90FsFejcmCGdUHdwSqU1R0VoLg7sg== X-Received: by 2002:a05:6e02:398e:b0:3e3:d499:73f with SMTP id e9e14a558f8ab-3e4161b735cmr317493385ab.18.1754425101531; Tue, 05 Aug 2025 13:18:21 -0700 (PDT) Received: from smtpclient.apple (c-67-167-5-111.hsd1.il.comcast.net. [67.167.5.111]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50a9f13ddcesm1794242173.32.2025.08.05.13.18.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Aug 2025 13:18:21 -0700 (PDT) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: 31.0.50; Customize-browse emits treesit warnings Message-Id: Date: Tue, 5 Aug 2025 15:18:10 -0500 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3826.700.81) Received-SPF: pass client-ip=2607:f8b0:4864:20::d30; envelope-from=spd@toadstyle.org; helo=mail-io1-xd30.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi folks, Browsing the customization settings can raise warnings for tree-sitter modes that are not in use. Recipe: 0. Build Emacs with tree-sitter support, but don't install associated language grammars 1. Emacs -Q 2. M-x customize-browse 3. Expand the "Programming" group 4. Expand the "Languages" group You will see a warning for any installed tree-sitter modes whose grammars are not installed. Emacs ships with several such modes, e.g. ruby-ts-mode, elixir-ts-mode, heex-ts-mode, php-ts-mode, and lua-ts-mode. The warnings are surprising, since I'm just browsing customization settings, and not even settings specific to those modes. I haven't tried to enable any of these modes so far. I think most users will not preemptively install language grammars for every installed tree-sitter mode (especially as more such modes are added), so browsing customization settings should not raise warnings like this. Should these libraries really make noise like this when they are unintentionally loaded by the user? Cheers, and thanks! In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.6.0, NS appkit-2575.70 Version 15.6 (Build 24G84)) of 2025-08-03 built on Mac Repository revision: e70723fcb7b9cf2daad92d563f97735892d758e1 Repository branch: spd-igc Windowing system distributor 'Apple', version 10.3.2575 System Description: macOS 15.6 Configured using: 'configure --with-ns --with-modules --with-native-compilation --with-libgmp --with-tree-sitter --with-sqlite3 --with-mps=yes --without-imagemagick --without-dbus CPPFLAGS=-I/opt/homebrew/include LDFLAGS=-L/opt/homebrew/lib PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig ac_cv_func_posix_spawn_file_actions_addchdir=no' Configured features: ACL GIF GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES MPS NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Special Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 minibuffer-regexp-mode: t buffer-read-only: 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 lisp-mnt message yank-media rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums misearch multi-isearch cus-theme eieio-custom eieio-base xwidget url-handlers image-mode dired dired-loaddefs exif format-spec bookmark wid-browse tree-widget vhdl-mode verilog-mode diff vera-mode hippie-exp tcl sql view simula sieve sieve-mode sieve-manage sasl sasl-anonymous sasl-login sasl-plain sh-script executable ruby-ts-mode ruby-mode python project compat pcase ps-mode prolog align php-ts-mode html-ts-mode perl-mode pascal opascal octave rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-enc xmltok modula2 meta-mode m4-mode lua-ts-mode ld-script js c-ts-common info-look info icon hideshow heex-ts-mode fortran f90 ethio-util robin elixir-ts-mode warnings dcl-mode tempo css-mode treesit smie sgml-mode imenu eww track-changes vtable url-queue thingatpt shr pixel-fill kinsoku url-file svg xml dom browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json map byte-opt gv url-vars mailcap puny mm-url gnus nnheader gnus-util time-date mail-utils range mm-util mail-prsvr cperl-mode facemenu cfengine cfengine3 bat-mode asm-mode antlr-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs compile text-property-search comint subr-x ansi-osc ansi-color ring comp-run bytecomp byte-compile comp-common rx ring-bell-fns pulse face-remap color cus-edit pp cus-start cus-load icons wid-edit cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 kqueue cocoa ns lcms2 multi-tty make-network-process tty-child-frames native-compile mps emacs) Memory information: ((conses 24 0 0) (symbols 56 0 0) (strings 40 0 0) (string-bytes 1 0) (vectors 24 0) (vector-slots 8 0 0) (floats 24 0 0) (intervals 64 0 0) (buffers 1072 0)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 06 08:26:35 2025 Received: (at 79180) by debbugs.gnu.org; 6 Aug 2025 12:26:36 +0000 Received: from localhost ([127.0.0.1]:58383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ujdE3-0001Zy-AX for submit@debbugs.gnu.org; Wed, 06 Aug 2025 08:26:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52850) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ujdDy-0001Zc-Ru; Wed, 06 Aug 2025 08:26:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ujdDr-0001Vi-U4; Wed, 06 Aug 2025 08:26:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=w1kSkYZQ1GfC0tORgFx/+alWmvvVP6YTf0XINXoFxTc=; b=bkHPUA8b5g9J HqPkhAFhyQPZAM0aKG5vuLkvY4j0M7LBmVBN6AUk1nnVvScFm2+H/vRAj96BHEivUCTB7+OlVeL5X FS7gH7k/gjOmXdclIVbH27cMUEj66foK2kfYrxEZE2/LRQaQzXFBtsC/Dr11REztizF3mfKX1Lycx yWHOepSq9SmYJoEsMrrcQUZX6GFFyFMoF78NRZUNFz2QTmQzdiHknbqf2WgiQK4BOKo2cDQ7Wg2fH Q/fJlqfRHQR1b583F5zln3V4kBSYVaoGWe8VjrSsDzEiSDFTMAVRYTRVe/NYVKJ6+SS6lhvU+eyr7 yj23ETVHJY+GPpjfFDQQ8g==; Date: Wed, 06 Aug 2025 15:26:21 +0300 Message-Id: <86ikj0tz4i.fsf@gnu.org> From: Eli Zaretskii To: Sean Devlin In-Reply-To: (message from Sean Devlin on Tue, 5 Aug 2025 15:18:10 -0500) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: 79180@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 (---) merge 79180 64487 thanks > From: Sean Devlin > Date: Tue, 5 Aug 2025 15:18:10 -0500 > > Browsing the customization settings can raise warnings for tree-sitter > modes that are not in use. > > Recipe: > > 0. Build Emacs with tree-sitter support, but don't install associated > language grammars > 1. Emacs -Q > 2. M-x customize-browse > 3. Expand the "Programming" group > 4. Expand the "Languages" group > > You will see a warning for any installed tree-sitter modes whose > grammars are not installed. Emacs ships with several such modes, > e.g. ruby-ts-mode, elixir-ts-mode, heex-ts-mode, php-ts-mode, and > lua-ts-mode. > > The warnings are surprising, since I'm just browsing customization > settings, and not even settings specific to those modes. I haven't tried > to enable any of these modes so far. > > I think most users will not preemptively install language grammars for > every installed tree-sitter mode (especially as more such modes are > added), so browsing customization settings should not raise warnings > like this. > > Should these libraries really make noise like this when they are > unintentionally loaded by the user? This is a known issue, see bug#64487. It's a side effect of the decision to warn users when they activate tree-sitter based modes for which they don't have a grammar library installed. These warnings are triggered by Custom which loads all the packages belonging to a customization group when you browse that group. The warning is harmless, and we don't have a good solution that would avoid it in Customize but still emit it when the mode is loaded in other ways. Ideas for how to pull that trick will be welcome. (The fact that Custom loads the packages is a known misfeature.) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 02:31:17 2025 Received: (at 79180) by debbugs.gnu.org; 8 Aug 2025 06:31:18 +0000 Received: from localhost ([127.0.0.1]:36830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ukGdJ-0005eF-IQ for submit@debbugs.gnu.org; Fri, 08 Aug 2025 02:31:17 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:32998) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ukGdG-0005dm-ED for 79180@debbugs.gnu.org; Fri, 08 Aug 2025 02:31:15 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4byvLJ4j3Dz9tCp; Fri, 8 Aug 2025 08:31:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1754634664; 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=smTHzP2j2NE7Lcx+L67D1dcReaxwWZzrRX+8nbQr6Os=; b=YJlyu9HoFsnveR1B9VznUi+zwCN8DhW5/2IknVOVzN+DH6d20Ojoij8pzYTp7vliI8891V DYUowKfPZxitsbkgrO17bHVh6nqXX9YGf01w2S8HpS0oNQ5eMVJHWUKp7r0dCpC6wljVts cgKckouzV2rnxAPqhtFAcS2Vm+RNwzNw0yQAcfIc6HPMNQGC5/SnPBK5fL1iC3ILbtSM5Z gV0f+WJubxnlcCmwsOwB7kfPPcm/PkbaDv1iCkc4dohGFJ6gC48hYXB57UpT+aAX5t53zk Dk5o9BWbHXjGsmIOn0aN4vS+ji2Nb5NIGx2eS5cgf48q0usqSKhrkiw6dQHCCA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@linkov.net designates 2001:67c:2050:b231:465::102 as permitted sender) smtp.mailfrom=juri@linkov.net From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86ikj0tz4i.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> Date: Fri, 08 Aug 2025 09:29:27 +0300 Message-ID: <87h5yi72lh.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4byvLJ4j3Dz9tCp X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: Sean Devlin , 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > This is a known issue, see bug#64487. It's a side effect of the > decision to warn users when they activate tree-sitter based modes for > which they don't have a grammar library installed. These warnings are > triggered by Custom which loads all the packages belonging to a > customization group when you browse that group. > > The warning is harmless, and we don't have a good solution that would > avoid it in Customize but still emit it when the mode is loaded in > other ways. Ideas for how to pull that trick will be welcome. (The > fact that Custom loads the packages is a known misfeature.) I have a patch that removes these warnings. Should I post it here or on emacs-devel? From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 03:05:50 2025 Received: (at 79180) by debbugs.gnu.org; 8 Aug 2025 07:05:50 +0000 Received: from localhost ([127.0.0.1]:36914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ukHAk-0001j6-7B for submit@debbugs.gnu.org; Fri, 08 Aug 2025 03:05:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50948) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ukHAi-0001iu-4q for 79180@debbugs.gnu.org; Fri, 08 Aug 2025 03:05:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ukHAc-0005fi-Hn; Fri, 08 Aug 2025 03:05:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pDD9/8DNdH0SsO8FfSUJqfrnnx0jnwfdQEENylNES2A=; b=nzxkCsnUDtS6 hKfBlFxhF1FN8QT9MzFJlzP/KugArvgTIb9weLsldphG4I+Nj5Ji7r++2xi22VWm4IV2TeKUT5fg2 dptTBtyLIHBAzQlLP4GuXWOOKS2ALKCKb7EQMOao6k83Z8TeRwmifn4JMBGdyspW1rKq1VsK/Axuz /XJO8cwQIpxEgd49NlTDluN7iSSS6yO1LmNm122tVK4pvJhO9z66ULO8C/hbHz4uHmlRWPnVrC682 LTPR+nEhbCZ5zVSKvdxl+gbV8wK7ho8CEDnNHgLEtR2PjwfoSo7kfv16ZlTHzFCh0zXd2bHjAnc1S RElDNE1MLWWCROxwPzVqNg==; Date: Fri, 08 Aug 2025 10:05:38 +0300 Message-Id: <86pld6nvi5.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87h5yi72lh.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 08 Aug 2025 09:29:27 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: Sean Devlin , 79180@debbugs.gnu.org > Date: Fri, 08 Aug 2025 09:29:27 +0300 > > > This is a known issue, see bug#64487. It's a side effect of the > > decision to warn users when they activate tree-sitter based modes for > > which they don't have a grammar library installed. These warnings are > > triggered by Custom which loads all the packages belonging to a > > customization group when you browse that group. > > > > The warning is harmless, and we don't have a good solution that would > > avoid it in Customize but still emit it when the mode is loaded in > > other ways. Ideas for how to pull that trick will be welcome. (The > > fact that Custom loads the packages is a known misfeature.) > > I have a patch that removes these warnings. > Should I post it here or on emacs-devel? Please post here, and thanks. If it turns out a more general discussion is needed, we will start it on emacs-devel then. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 14:01:51 2025 Received: (at 79180) by debbugs.gnu.org; 8 Aug 2025 18:01:51 +0000 Received: from localhost ([127.0.0.1]:39169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ukRPa-0004UB-Nm for submit@debbugs.gnu.org; Fri, 08 Aug 2025 14:01:51 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:57852) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ukRPW-0004Tt-AB for 79180@debbugs.gnu.org; Fri, 08 Aug 2025 14:01:48 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4bzBg548GVz9tCk; Fri, 8 Aug 2025 20:01:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1754676097; 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=EaObWYZ42OmUO4w7SNt0KJ+iW8XqP7Xc0m9Bu7qDuRs=; b=nwe6lsLLKpXG4R4BhBi6N3jCTgCHJKBYBEWWRH3JazoY6CGr7a3apZ1zyUHl6Ekl1xnXLR UtqeAA7aVojR2Urbb2uZiqGb5ct25GUyEWK7uHkB9g0QElxkVDccU/GceG7/omDhoKwsnF fW2zGR0wYLJW0d1oAEDsn0GF0+cvFqo+pWsf8VIXtm7URQNMX4NFw0tbNT1vvpBTDWQAdL ezTEzL3Y3CkplGRsikmseJj0T22V+kDhKA7Lv5VtEScWL+kRPHAW4WxjsZfpKKRMbqpNeV JnDO70Rkb8+CrmbS7f1ztJy+WuZLADJ1Ubc+Vys4dzsGiBoaBAjR+F9wgs9rrQ== From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86pld6nvi5.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> Date: Fri, 08 Aug 2025 20:57:27 +0300 Message-ID: <871pplpugp.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain >> I have a patch that removes these warnings. >> Should I post it here or on emacs-devel? > > Please post here, and thanks. If it turns out a more general > discussion is needed, we will start it on emacs-devel then. This new option was discussed many times on emacs-devel, and here it's finally implemented. As an example the patch demonstrates the required changes only for markdown-ts-mode, and similarly the same changes will be applied to all other ts-modes: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=treesit-enabled-modes.patch diff --git a/lisp/textmodes/markdown-ts-mode.el b/lisp/textmodes/markdown-ts-mode.el index a94d1590fa0..e44ee583edd 100644 --- a/lisp/textmodes/markdown-ts-mode.el +++ b/lisp/textmodes/markdown-ts-mode.el @@ -403,8 +403,14 @@ markdown-ts-mode (derived-mode-add-parents 'markdown-ts-mode '(markdown-mode)) -(if (treesit-ready-p 'markdown) - (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-ts-mode))) +;;;###autoload +(when (treesit-available-p) + (unless (fboundp 'markdown-mode) + (defalias 'markdown-mode #'ignore)) + (unless (rassq 'markdown-mode auto-mode-alist) + (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))) + (add-to-list 'treesit-mode-remap-alist + '(markdown-mode . markdown-ts-mode))) (provide 'markdown-ts-mode) ;;; markdown-ts-mode.el ends here diff --git a/lisp/treesit.el b/lisp/treesit.el index dc17515ff99..69b48e0402b 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -5397,6 +5397,35 @@ treesit-ensure-installed ;; Check that the grammar was installed successfully (treesit-ready-p lang)))) +;;; Treesit enabled modes + +(defun treesit--enabled-modes-type () + `(choice (const :tag "Disable all automatic associations" nil) + (const :tag "Enable all available ts-modes" t) + (set :tag "List of enabled ts-modes" + ,@(sort (mapcar (lambda (m) `(const ,(cdr m))) + treesit-mode-remap-alist))))) + +;;;###autoload +(defcustom treesit-enabled-modes nil + "Specify what treesit modes to enable by default." + :type (treesit--enabled-modes-type) + :initialize #'custom-initialize-default + :set (lambda (sym val) + (mapc (lambda (m) + (if (stringp (car m)) + (setq auto-mode-alist + (if (or (eq val t) (memq (cdr m) val)) + (cons m auto-mode-alist) + (delete m auto-mode-alist))) + (setq major-mode-remap-alist + (if (or (eq val t) (memq (cdr m) val)) + (cons m major-mode-remap-alist) + (delete m major-mode-remap-alist))))) + treesit-mode-remap-alist) + (set-default sym val)) + :version "31.1") + ;;; Shortdocs (defun treesit--generate-shortdoc-examples () diff --git a/src/treesit.c b/src/treesit.c index bb720589c85..e9dc6596d89 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -5299,6 +5299,16 @@ cons (REGEXP . FN), which is a combination of a regexp and a predicate buffer. */); Vtreesit_languages_require_line_column_tracking = Qnil; + DEFVAR_LISP ("treesit-mode-remap-alist", + Vtreesit_mode_remap_alist, + doc: + /* An alist remapping mode symbols. + +The value should be an alist of (MODE . TS-MODE). This alist +is used to modify the value of `major-mode-remap-alist' +depending on the customization of `treesit-enabled-modes'. */); + Vtreesit_mode_remap_alist = Qnil; + staticpro (&Vtreesit_str_libtree_sitter); Vtreesit_str_libtree_sitter = build_string ("libtree-sitter-"); staticpro (&Vtreesit_str_tree_sitter); --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 19:44:43 2025 Received: (at 79180) by debbugs.gnu.org; 8 Aug 2025 23:44:43 +0000 Received: from localhost ([127.0.0.1]:39477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ukWlP-00033w-Ab for submit@debbugs.gnu.org; Fri, 08 Aug 2025 19:44:43 -0400 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]:53634) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1ukWlL-00033d-SA for 79180@debbugs.gnu.org; Fri, 08 Aug 2025 19:44:41 -0400 Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-3e53184cf4fso15209315ab.3 for <79180@debbugs.gnu.org>; Fri, 08 Aug 2025 16:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1754696674; x=1755301474; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gVe8TGH15Qzvi+GHbKsTxmfeyO35JGdprb24Bdvmf9o=; b=w0I7AuXzwwKQfneoAT1ewGfn7eHDQeA3ExO8v7lf8Gij34teFEYL1Yd/qdOTV8B+dW LD7l+FavZ6UTk9383b42hseSZOpjBqaxM/GaOR7yt4R+3oeYRfyZXQYGjymteRLUofL6 mRb1Chq1o0vBdStHcAvh82W/wywHzN7Inm6N66Mjtn+UiIdrVul5F7s9bbNYtyD2btA8 v4X4beOqRZX3jAGjItHQDO4XNcoL13pV4zYwytiitxYsVXbh3XJaqPmGHJIwS4x9/GDa kybGo6CESz//7WJ7Iwhguy7I2MJPvKtqCdTxT/5gLxiX6v+5807nhe9ySEsj3fbwOSKZ T0yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754696674; x=1755301474; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gVe8TGH15Qzvi+GHbKsTxmfeyO35JGdprb24Bdvmf9o=; b=pFfZsLYZWxJsY9Jtdh+SvnCm3i6aqaDUmqEfiwqgX7BiXt8396Gp1ccSySMr5pMDYJ R2m7o5CmaLlY05azAFrscneVC0B34nxADfgMipPOsy/ByGHsUEt1leWvkakq6lo2mOvS QU9cbWnjBunBAZGq1KB4jNtKqolu5BgN/KnR6m6Xs0KgYqzhOX8M4b91s2zGWgY0mjM/ r75wMZeLmVi9Md/U3Bdxx58K+qj9BaGMKa2Vr/55QTp6gTNw01IR9G4GhAzhasmbKT+1 qTbZ/S3B4sZ3nCmmAL9eC1fkAPasvEMMTToiayQwp9ttbBPo0xYuHj2t+PB+7B0E9yC3 bicg== X-Gm-Message-State: AOJu0Yyj1NAmFDTcHQ45yvOjwXqrFGuTlaPARZ0tUoueSbJRZbLJk/aB tCky0INOnacUsTeorzle0OTWEVyxhRrQTa/QncCU0PQjtUplE0hGL6kVPYFtnU1DMlx3dyS6wbg G5NhM X-Gm-Gg: ASbGnctH7dtteKwSWiEOVVgP34DaEKFD+le5OwD61Pkq9TMzz1Pb7iFrVmY6xxXDYS2 T/11b4HFC5pzmBOJrNWcVuoR29fhLl85CmK/FIbfYkZerHRoH+CcUpflDJSpATYllEuYnoIFQDA W+IavaNJg0xDUr2PrTXDCVpQhmxCoDGzfFlyPdM3YN2i6Tt112EiAZnLkoDQzxbLj6gXnNq0RaH ZbTZwqX77weZ0xOTcnEwbUvOXjpKnfbu9EmS8ihChwc4zcSMCYDQHEtRKhMnYQ+HHcESIkOFYYB 5LIILw7+8tZpkApXOkZSQJHSLu5AI1byQ7FWAdGMzy0HRO29zzd4hOXp0H9GPCUPXuYFxnKEsg/ /I8sCADfouxKd1ZF6B3Qv6Pc7em6txBmOX8JnaBCJUvSYX5Fp8KXZs2tvHU+zi9myu1jhiog= X-Google-Smtp-Source: AGHT+IF4PgINR+L1pjNUktv6yJ9Xwi5vZEJimgITHpnb930afqy2loIlQn31tIJ6x1j74I45NCO4xw== X-Received: by 2002:a05:6e02:e0f:b0:3e5:3ef0:b0e5 with SMTP id e9e14a558f8ab-3e53ef0b345mr2813585ab.7.1754696673683; Fri, 08 Aug 2025 16:44:33 -0700 (PDT) Received: from smtpclient.apple (c-67-167-5-111.hsd1.il.comcast.net. [67.167.5.111]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50ae9ce8256sm747254173.100.2025.08.08.16.44.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Aug 2025 16:44:33 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings From: Sean Devlin In-Reply-To: <86ikj0tz4i.fsf@gnu.org> Date: Fri, 8 Aug 2025 18:44:22 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <5F065A29-8E0D-499B-A964-FB850724DFA7@toadstyle.org> References: <86ikj0tz4i.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3826.700.81) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79180 Cc: 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Aug 6, 2025, at 7:26=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >=20 > This is a known issue, see bug#64487. It's a side effect of the > decision to warn users when they activate tree-sitter based modes for > which they don't have a grammar library installed. These warnings are > triggered by Custom which loads all the packages belonging to a > customization group when you browse that group. >=20 > The warning is harmless, and we don't have a good solution that would > avoid it in Customize but still emit it when the mode is loaded in > other ways. Ideas for how to pull that trick will be welcome. (The > fact that Custom loads the packages is a known misfeature.) Thanks, that makes sense. Sorry for the noise.= From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 09 01:37:02 2025 Received: (at 79180) by debbugs.gnu.org; 9 Aug 2025 05:37:02 +0000 Received: from localhost ([127.0.0.1]:39844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ukcGM-0002qg-AI for submit@debbugs.gnu.org; Sat, 09 Aug 2025 01:37:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54890) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ukcGJ-0002q8-Mk for 79180@debbugs.gnu.org; Sat, 09 Aug 2025 01:37:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ukcGB-0000r0-7K; Sat, 09 Aug 2025 01:36:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vAjy1zsrjyZ0pJi3csFDDtO6yMDCpe0TOyuuHckCmZ4=; b=aVQ/uKYjTdE6 KEayXCdqrWhh5eJOBcpvKxMHw/r/2A0UzZUySgCczOvlMDOFtCFqKY4IVHEFIxeX0hzer+qznGk48 ChsOU7xzKxAzOB6ahcf5qqKrQsU0quaa1ZxMJYU9Hxhyvzk17qoUwZlaFBzrhPnwxA92AwB6Vw5BT NYgRA6ITNRZdmopQi+91bnAQv5GWmAQexmsCf7kw/4UQIk+t747p54R0WL4XCmdIkywX3EvNazGcV OpCf5hOh4fPlBE4nSD7dL9aI7J6DD/I2lis5ttq9C3nQ6e/GcrVTfB4/VVjdhtR6LSHMTA2O8tjTC mbXAkVZYs2pRpBcPhenffA==; Date: Sat, 09 Aug 2025 08:36:48 +0300 Message-Id: <86pld5m4y7.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <871pplpugp.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 08 Aug 2025 20:57:27 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Fri, 08 Aug 2025 20:57:27 +0300 > > >> I have a patch that removes these warnings. > >> Should I post it here or on emacs-devel? > > > > Please post here, and thanks. If it turns out a more general > > discussion is needed, we will start it on emacs-devel then. > > This new option was discussed many times on emacs-devel, > and here it's finally implemented. As an example the patch > demonstrates the required changes only for markdown-ts-mode, and > similarly the same changes will be applied to all other ts-modes: Sorry, I'm probably missing something: this patch seems to completely remove the warning about manual activation of, say, markdown-ts-mode when the grammar library is not installed? IOW, what happens under this patch if the user says "M-x markdown-ts-mode RET" and the grammar library is not installed? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 10 02:57:21 2025 Received: (at 79180) by debbugs.gnu.org; 10 Aug 2025 06:57:21 +0000 Received: from localhost ([127.0.0.1]:43792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ukzzd-0001Vj-Eg for submit@debbugs.gnu.org; Sun, 10 Aug 2025 02:57:21 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:54636) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ukzzX-0001VA-RP for 79180@debbugs.gnu.org; Sun, 10 Aug 2025 02:57:16 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4c07qS13wVz9smP; Sun, 10 Aug 2025 08:57:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1754809028; 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=YTUBKFdenGGdCGdXDpETESTcY6S2x6vnQJKg3FSYAgg=; b=npp2wHLga6muWWUcTKOZrX2NMNYk1uEpW8sK4a9w1UQNn8RL73lKb8gMDMwCld3prqQ86p cAkR9gYLEX/oFCdtFf5sLNzySXlotXn2ht6xdxbg6WrCYspl7oA0NjfZuDqqelalUzh5Ve JSA52Az2St/vdpnEVbIA0VJxolohMY2ZK9IXDVNN+FyuuNMvL3BvGhs6GVKRm47LxMCoK8 p+xxCa3xkZjhhyIo1BLeccJi7VWVYo8whNFaRiT+6LE62hslng4kexofyIUH9NVasX3iwM 2DKaBi6cjvkzFw9GnIQ0Z/773VCY/XOvE1jb5FEnTKkIehSPgpTbhdrRK1L38Q== From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86pld5m4y7.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> Date: Sun, 10 Aug 2025 09:50:47 +0300 Message-ID: <87o6snoek8.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> >> I have a patch that removes these warnings. >> >> Should I post it here or on emacs-devel? >> > >> > Please post here, and thanks. If it turns out a more general >> > discussion is needed, we will start it on emacs-devel then. >> >> This new option was discussed many times on emacs-devel, >> and here it's finally implemented. As an example the patch >> demonstrates the required changes only for markdown-ts-mode, and >> similarly the same changes will be applied to all other ts-modes: > > Sorry, I'm probably missing something: this patch seems to completely > remove the warning about manual activation of, say, markdown-ts-mode > when the grammar library is not installed? It removes the warning during loading the markdown-ts-mode.el package with e.g. `(require 'markdown-ts-mode)`. > IOW, what happens under this patch if the user says "M-x > markdown-ts-mode RET" and the grammar library is not installed? It proposes to install the grammar library: Tree-sitter grammar for `markdown' is missing; install it? (y or n) From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 10 03:57:18 2025 Received: (at 79180) by debbugs.gnu.org; 10 Aug 2025 07:57:18 +0000 Received: from localhost ([127.0.0.1]:43857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ul0vd-0004D2-Um for submit@debbugs.gnu.org; Sun, 10 Aug 2025 03:57:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50238) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ul0vb-0004Cn-5V for 79180@debbugs.gnu.org; Sun, 10 Aug 2025 03:57:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ul0vU-0004Xb-Lq; Sun, 10 Aug 2025 03:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Bspn1fUwfXX8ldlwo3FMj9jkvVB+IlLnttJWNMIfc2k=; b=pkvzga2DDbCt dHZsH1TvN3UGhduJ0kwN+OgyNOjqtsP4Mkyxf2yejOM4nPk3Yml2glVpofQNlsN6YJvsNiqo3/Sdl TrcmGIxwmBUI93O7IkYaiIoMZNbRNbs6bU11WUqW9AP6OFZKNinEpldp9N8A6VKUzm/FRnP2KBYPv +N9DhnRrH+1/0lweZIKNi07dgFM5Fa+pfG9liE0pwGVX7ZaEqoN0PAvQSNExPS9C7GQvkklw9CnvD P+pJ9tUxKjSTYCcumnS9WNWeMisfhhI0/hf/IDfe5i5pNiTrblT5eMJhuZUk9eALa7WnFmqLzq9sA arMe5D75lirfJ4hVISyeHQ==; Date: Sun, 10 Aug 2025 10:57:06 +0300 Message-Id: <86sehzk3sd.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87o6snoek8.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 10 Aug 2025 09:50:47 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Sun, 10 Aug 2025 09:50:47 +0300 > > >> >> I have a patch that removes these warnings. > >> >> Should I post it here or on emacs-devel? > >> > > >> > Please post here, and thanks. If it turns out a more general > >> > discussion is needed, we will start it on emacs-devel then. > >> > >> This new option was discussed many times on emacs-devel, > >> and here it's finally implemented. As an example the patch > >> demonstrates the required changes only for markdown-ts-mode, and > >> similarly the same changes will be applied to all other ts-modes: > > > > Sorry, I'm probably missing something: this patch seems to completely > > remove the warning about manual activation of, say, markdown-ts-mode > > when the grammar library is not installed? > > It removes the warning during loading the markdown-ts-mode.el package > with e.g. `(require 'markdown-ts-mode)`. And if the mode is loaded via some autoload cookie? > > IOW, what happens under this patch if the user says "M-x > > markdown-ts-mode RET" and the grammar library is not installed? > > It proposes to install the grammar library: > > Tree-sitter grammar for `markdown' is missing; install it? (y or n) How does that work? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 10 13:49:42 2025 Received: (at 79180) by debbugs.gnu.org; 10 Aug 2025 17:49:42 +0000 Received: from localhost ([127.0.0.1]:45837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ulAAw-0001Nb-JD for submit@debbugs.gnu.org; Sun, 10 Aug 2025 13:49:42 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:50164) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ulAAt-0001NH-Sl for 79180@debbugs.gnu.org; Sun, 10 Aug 2025 13:49:40 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4c0QJB2pVqz9sZc; Sun, 10 Aug 2025 19:49:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1754848170; 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=uUh0UavUkwggtogeDRYoBBOlC54J7xMWdhWmdhqnkOc=; b=bPhjgMJ3LFl+Arx8/MNDCHWMv/xKdO2PAWRxTOd86BHob8NC6FPYZqEQXCLarcO22mODfv DQhXBlfzv16fbgcQikmSvWha52fz8lL5EEU+URt+a5XnqoKftf8J86RaHW9fKKjvdYx0Nb 33f+MINuvDlwakTYLkdblnbpkcp1kqh+0A79qKghjuWqqLI5LnbvBAhlpiBKWcf63LHYZg 1NFwM/IgCOl0QF53OPbMldMl5RDd5WBOCSZ6tSPk7RGHA6zqNYnUr/ii5sj9w4niBewH07 P1ufhnL3oBo94vmFi53S/jHxLAHSd/pGS9oYms0mKNnKKFuZO/a/+Uf0cECW6g== From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86sehzk3sd.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> Date: Sun, 10 Aug 2025 20:49:19 +0300 Message-ID: <87jz3b6r0o.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> >> This new option was discussed many times on emacs-devel, >> >> and here it's finally implemented. As an example the patch >> >> demonstrates the required changes only for markdown-ts-mode, and >> >> similarly the same changes will be applied to all other ts-modes: >> > >> > Sorry, I'm probably missing something: this patch seems to completely >> > remove the warning about manual activation of, say, markdown-ts-mode >> > when the grammar library is not installed? >> >> It removes the warning during loading the markdown-ts-mode.el package >> with e.g. `(require 'markdown-ts-mode)`. > > And if the mode is loaded via some autoload cookie? Yes. >> > IOW, what happens under this patch if the user says "M-x >> > markdown-ts-mode RET" and the grammar library is not installed? >> >> It proposes to install the grammar library: >> >> Tree-sitter grammar for `markdown' is missing; install it? (y or n) > > How does that work? 'markdown-ts-mode' ensures this with (treesit-ensure-installed 'markdown). From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 11 07:47:01 2025 Received: (at 79180) by debbugs.gnu.org; 11 Aug 2025 11:47:01 +0000 Received: from localhost ([127.0.0.1]:47344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ulQzV-0001lC-6I for submit@debbugs.gnu.org; Mon, 11 Aug 2025 07:47:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34128) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ulQzO-0001kp-DK for 79180@debbugs.gnu.org; Mon, 11 Aug 2025 07:46:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ulQzI-0000El-05; Mon, 11 Aug 2025 07:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=j46mAoVulgBbX9CUSO71KRYGpL5Rtq3NPYqA6/WH6aY=; b=YRSNrSG0USww CGglaYIqoZkPHJixCORKFtu1AMHNWNQKlsIN6fqSeCK1MjB1Rfu6/TjkDyBkGk2KCGjDyB2OYiWf2 VJnbP1JqpTPGLtbX1KNAFUlLjQAdD99VqeOSRgSQy9RnscZITNNzK+SkEgbdlIxv934/iXjKte6CD YtV1BT2LO5BhSCGWCZd6IWLxvzZc5wiobNLfUUpE/EflAETICunsBTZZwYlOOHn76iTIfRx7ntCS7 1+/6AedPYgO/Edydy1svChJpJc07eefr6FirTYVwvB4VfTHLxyAqpyJ4x0LsJSlCPpx7Is/Dr4QkE voAr6SGM3QJuuZ70+Cl30A==; Date: Mon, 11 Aug 2025 14:46:41 +0300 Message-Id: <86349yjd26.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87jz3b6r0o.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 10 Aug 2025 20:49:19 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Sun, 10 Aug 2025 20:49:19 +0300 > > >> >> This new option was discussed many times on emacs-devel, > >> >> and here it's finally implemented. As an example the patch > >> >> demonstrates the required changes only for markdown-ts-mode, and > >> >> similarly the same changes will be applied to all other ts-modes: > >> > > >> > Sorry, I'm probably missing something: this patch seems to completely > >> > remove the warning about manual activation of, say, markdown-ts-mode > >> > when the grammar library is not installed? > >> > >> It removes the warning during loading the markdown-ts-mode.el package > >> with e.g. `(require 'markdown-ts-mode)`. > > > > And if the mode is loaded via some autoload cookie? > > Yes. > > >> > IOW, what happens under this patch if the user says "M-x > >> > markdown-ts-mode RET" and the grammar library is not installed? > >> > >> It proposes to install the grammar library: > >> > >> Tree-sitter grammar for `markdown' is missing; install it? (y or n) > > > > How does that work? > > 'markdown-ts-mode' ensures this with (treesit-ensure-installed 'markdown). OK, so can you describe the workflow of someone who wants to use markdown-ts-mode for Markdown files? Currently, they need to load markdown-ts-mode; what would be the replacement of that if this patch is installed? From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 12 02:20:03 2025 Received: (at 79180) by debbugs.gnu.org; 12 Aug 2025 06:20:03 +0000 Received: from localhost ([127.0.0.1]:51317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uliMc-0007rR-HH for submit@debbugs.gnu.org; Tue, 12 Aug 2025 02:20:03 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:58184) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uliMY-0007qh-Lz for 79180@debbugs.gnu.org; Tue, 12 Aug 2025 02:19:59 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4c1LvQ6Hv8z9shq; Tue, 12 Aug 2025 08:19:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1754979586; 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=hrDavwNkCzEJfMjZU9Ana7sLdweDa5B5hSMdtl1pRdg=; b=unFiuksQAseAIu0F1TVA+0F+mNcHx7KN1YE5JQALnivTookj6oqYDC26az0zIullwMyerk cU0rnutepcnbPQrh4eFaMJYZ8ai+AvGIT75nGhkPaWspIG2iLnX+F2ikGlyOoUrc2szeK5 wT3YIMnje4U9vMaMJq8ce1R5TXTBixLE66BOd7CQFOHW8T+Gp8l5EvDo0fuDBLTi/ys0Nm h0eyRWvrFkBJVi0EYp4MXdUyGJV6Nn8RIngkfQORGRJOrOZIkyqApCvHCxkql8xfWQ9uZE BdaYMMaD7i68A8MiFtCU5IGCaDX/uj4Kii2YVaZHsjWQHlMtt13O5eedOfvyhw== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@linkov.net designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@linkov.net From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86349yjd26.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> Date: Tue, 12 Aug 2025 09:18:43 +0300 Message-ID: <87h5ydt64c.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4c1LvQ6Hv8z9shq X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > OK, so can you describe the workflow of someone who wants to use > markdown-ts-mode for Markdown files? Currently, they need to load > markdown-ts-mode; what would be the replacement of that if this patch > is installed? Here is the workflow: when someone wants to use markdown-ts-mode for Markdown files, then the user customizes the option 'treesit-enabled-modes' either to t (enables all ts-modes) or to the list '(markdown-ts-mode)' (by clicking on the checkbox "markdown-ts-mode"). Then no need to load markdown-ts-mode manually: visiting a Markdown file will autoload markdown-ts-mode. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 12 08:19:19 2025 Received: (at 79180) by debbugs.gnu.org; 12 Aug 2025 12:19:19 +0000 Received: from localhost ([127.0.0.1]:52493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ulnyI-0005uU-8q for submit@debbugs.gnu.org; Tue, 12 Aug 2025 08:19:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57120) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ulnyD-0005uC-2B for 79180@debbugs.gnu.org; Tue, 12 Aug 2025 08:19:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ulny3-0004qr-FU; Tue, 12 Aug 2025 08:19:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hfpjhZ/E1hjIrHHpfFzSAAypAOKgBhlM5blVD3UoqMc=; b=r+K6n8bk+Vdc 4Xg+3oPm5298MZ7UTgWHK8152Pt1D22gNbGMPUeOricLIAPhqKVhEXZOuH0JHj2T7w6Ruk3QN9WAL fujjJLYvGH1uYwZ2TUlFMFw6spC0tdymKs5vbaMB81coZBmfssEn+qL2SKCFWJUrZuVjYOWarG8r/ 5Rvuem2tmgJnm+XlEbhfwkBPNM5RUHWZDDSXdxt/7FYYWq+I2dAhqrTfnoTk10g+C9OFLGJsRTE7x jbnwBQsxAWA2/ShADF1z9my118YQMBojrWdsxfAiqisgWugzJrSQ76Xav7eutdpOXVtO3XiYyadUb SwCvDqfVKUzoN1yqAjdcWA==; Date: Tue, 12 Aug 2025 15:18:58 +0300 Message-Id: <86ectgag25.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87h5ydt64c.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 12 Aug 2025 09:18:43 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Tue, 12 Aug 2025 09:18:43 +0300 > > > OK, so can you describe the workflow of someone who wants to use > > markdown-ts-mode for Markdown files? Currently, they need to load > > markdown-ts-mode; what would be the replacement of that if this patch > > is installed? > > Here is the workflow: when someone wants to use markdown-ts-mode for > Markdown files, then the user customizes the option 'treesit-enabled-modes' > either to t (enables all ts-modes) or to the list '(markdown-ts-mode)' > (by clicking on the checkbox "markdown-ts-mode"). Then no need to > load markdown-ts-mode manually: visiting a Markdown file will autoload > markdown-ts-mode. OK, and what would they need to do if they then change their minds and want to stop using markdown-ts-mode, switching back to markdown-mode? Also, what will happen in customize-group, when they select the "Languages" group? And what if they then select, say, Lua Ts group when the relevant grammar is not installed? From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 12 12:47:46 2025 Received: (at 79180) by debbugs.gnu.org; 12 Aug 2025 16:47:46 +0000 Received: from localhost ([127.0.0.1]:54549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ulsA5-0002eX-UI for submit@debbugs.gnu.org; Tue, 12 Aug 2025 12:47:46 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:41018) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ulsA1-0002eF-TI for 79180@debbugs.gnu.org; Tue, 12 Aug 2025 12:47:42 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4c1cqn75hFz9t3y; Tue, 12 Aug 2025 18:47:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1755017254; 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=TpsHW3SRGs29i/xqiiAv1EiU+pgD+PNsXnpXKtNlh3M=; b=bm/Fx4l6QjmO90dZffjEpT8fHjalgGBd/E81HKqAGNxQQib4oVDfCenCMYWL2okLzPMVIu wfT9bxbBZ3nIYRl5LnlkmIyzaIcUPULS2/tIc9bROd+BHlC85D85o48FQxg73cEfSzyr5B 0fvrWhG2oDd8kZ+IQGOJ//3RcMAq7Dw9GQMuCgJPmulJMZfaFT+N0dUCS3C/9QWuMHTaVq ZzOUcvGFm+U4UFxBX1RnUSPVRK+t7h48o8Q/eqPpl93h/s31sZw/ng4vck/xjcEnZYzlUM wL+Z3Wd6xNkI8wvYccKY6D0KXcd2VPVTJzeEaBV5jOp3WRn8Bte0Ko4/V9OvmA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@linkov.net designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@linkov.net From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86ectgag25.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> <86ectgag25.fsf@gnu.org> Date: Tue, 12 Aug 2025 19:46:50 +0300 Message-ID: <875xesij2d.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4c1cqn75hFz9t3y X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> > OK, so can you describe the workflow of someone who wants to use >> > markdown-ts-mode for Markdown files? Currently, they need to load >> > markdown-ts-mode; what would be the replacement of that if this patch >> > is installed? >> >> Here is the workflow: when someone wants to use markdown-ts-mode for >> Markdown files, then the user customizes the option 'treesit-enabled-modes' >> either to t (enables all ts-modes) or to the list '(markdown-ts-mode)' >> (by clicking on the checkbox "markdown-ts-mode"). Then no need to >> load markdown-ts-mode manually: visiting a Markdown file will autoload >> markdown-ts-mode. > > OK, and what would they need to do if they then change their minds and > want to stop using markdown-ts-mode, switching back to markdown-mode? Then they need to customize 'treesit-enabled-modes' again, and uncheck the checkbox with the label "markdown-ts-mode". > Also, what will happen in customize-group, when they select the > "Languages" group? And what if they then select, say, Lua Ts group > when the relevant grammar is not installed? Then no warnings are displayed. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 12 14:08:57 2025 Received: (at 79180) by debbugs.gnu.org; 12 Aug 2025 18:08:57 +0000 Received: from localhost ([127.0.0.1]:54737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ultQe-0003kP-Rj for submit@debbugs.gnu.org; Tue, 12 Aug 2025 14:08:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52132) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ultQa-0003k7-QV for 79180@debbugs.gnu.org; Tue, 12 Aug 2025 14:08:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ultQS-0000px-7D; Tue, 12 Aug 2025 14:08:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gLhZEv5p7GQShMscoUHFtleB5VywkWYez7bZ9FkFPXk=; b=cTGKvQ7diH8V bW4xVidOsAez1e6feI2RvC+2c7uUrYCFINhH8SJutY9c943sX+VSpYfyoykRk6+LwoamxqmrkKEW1 TmlJWh2YCq5/K0DdsixHdcHkL0P0YPaPFABTAbD5SA9bo2v5KHBKCCPnb+X2MOkgmfiEkyvhgLuqV wKXX7QxklHEbj+cdPcR0q4o05EwBu0l3ffxCXKurltmL9OqBQYenSFjJiqDb11l34BAsCD5mE5Iux tI+wV62x1e26T07KEvaHNnSDoErSMIjd11sktdOBJ/trFm7EBpp3I6u0SXqd+E5O1xTpsrPYGgQFg b60kP5Gw9jlVm2D3RtSKZg==; Date: Tue, 12 Aug 2025 21:08:41 +0300 Message-Id: <868qjo9zva.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <875xesij2d.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 12 Aug 2025 19:46:50 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> <86ectgag25.fsf@gnu.org> <875xesij2d.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Tue, 12 Aug 2025 19:46:50 +0300 > > >> > OK, so can you describe the workflow of someone who wants to use > >> > markdown-ts-mode for Markdown files? Currently, they need to load > >> > markdown-ts-mode; what would be the replacement of that if this patch > >> > is installed? > >> > >> Here is the workflow: when someone wants to use markdown-ts-mode for > >> Markdown files, then the user customizes the option 'treesit-enabled-modes' > >> either to t (enables all ts-modes) or to the list '(markdown-ts-mode)' > >> (by clicking on the checkbox "markdown-ts-mode"). Then no need to > >> load markdown-ts-mode manually: visiting a Markdown file will autoload > >> markdown-ts-mode. > > > > OK, and what would they need to do if they then change their minds and > > want to stop using markdown-ts-mode, switching back to markdown-mode? > > Then they need to customize 'treesit-enabled-modes' again, > and uncheck the checkbox with the label "markdown-ts-mode". But how to cause buffers already under TS mode to use the non-TS one? > > Also, what will happen in customize-group, when they select the > > "Languages" group? And what if they then select, say, Lua Ts group > > when the relevant grammar is not installed? > > Then no warnings are displayed. But are the options of Lua Ts group still visible and customizable? From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 13 02:32:22 2025 Received: (at 79180) by debbugs.gnu.org; 13 Aug 2025 06:32:23 +0000 Received: from localhost ([127.0.0.1]:55963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1um526-0001Hj-DV for submit@debbugs.gnu.org; Wed, 13 Aug 2025 02:32:22 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:51158) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1um523-0001HQ-A0 for 79180@debbugs.gnu.org; Wed, 13 Aug 2025 02:32:20 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4c1z7H26Shz9t0t; Wed, 13 Aug 2025 08:32:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1755066731; 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=5auKAZnrveBYwdQYoev20j8d3xCBc7XcQ+Wdo2b+4jU=; b=CrLfOAvrTNJNj7guaflXabFczJu+diZCj5itED8ercw3azJ918QJgtZxYAEI9BdpUYolve bqWLgTfy5jq6rJj9Xp68LRu9TslNcldq7MWfHyVfOhvP0QnmeHO61H5BTgaPXkxLBItv7/ 9gGyyvZWBAs3UhdmZZ72OQbFskABQuOf3d4eB/CsVR2P3MilV6DRKgQnmip/ee3HCiwU41 uUDI/q6Y+JfqJ/plEda8to7YtibCYMfCHn849VnDXaMTFrnyb3QnESfcTRkMVt/jqVp3Ob WUh4pXZyFv7yR7D+q715Cf8oKcCbgdqcS53a2ZAqnZ30xA18tGrXXOAEH1CyIA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@linkov.net designates 2001:67c:2050:b231:465::102 as permitted sender) smtp.mailfrom=juri@linkov.net From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <868qjo9zva.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> <86ectgag25.fsf@gnu.org> <875xesij2d.fsf@mail.linkov.net> <868qjo9zva.fsf@gnu.org> Date: Wed, 13 Aug 2025 09:30:56 +0300 Message-ID: <87sehvu40v.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4c1z7H26Shz9t0t X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> >> > OK, so can you describe the workflow of someone who wants to use >> >> > markdown-ts-mode for Markdown files? Currently, they need to load >> >> > markdown-ts-mode; what would be the replacement of that if this patch >> >> > is installed? >> >> >> >> Here is the workflow: when someone wants to use markdown-ts-mode for >> >> Markdown files, then the user customizes the option 'treesit-enabled-modes' >> >> either to t (enables all ts-modes) or to the list '(markdown-ts-mode)' >> >> (by clicking on the checkbox "markdown-ts-mode"). Then no need to >> >> load markdown-ts-mode manually: visiting a Markdown file will autoload >> >> markdown-ts-mode. >> > >> > OK, and what would they need to do if they then change their minds and >> > want to stop using markdown-ts-mode, switching back to markdown-mode? >> >> Then they need to customize 'treesit-enabled-modes' again, >> and uncheck the checkbox with the label "markdown-ts-mode". > > But how to cause buffers already under TS mode to use the non-TS one? Changing modes of existing buffers would be a strange thing to do. There are no other user options whose customization visits existing buffers to change their modes. >> > Also, what will happen in customize-group, when they select the >> > "Languages" group? And what if they then select, say, Lua Ts group >> > when the relevant grammar is not installed? >> >> Then no warnings are displayed. > > But are the options of Lua Ts group still visible and customizable? Yes, all options are customizable, and there are no warnings anymore. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 13 08:17:47 2025 Received: (at 79180) by debbugs.gnu.org; 13 Aug 2025 12:17:47 +0000 Received: from localhost ([127.0.0.1]:56689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umAQN-0004ty-8W for submit@debbugs.gnu.org; Wed, 13 Aug 2025 08:17:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53264) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umAQI-0004tA-78 for 79180@debbugs.gnu.org; Wed, 13 Aug 2025 08:17:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1umAQA-0005v2-8I; Wed, 13 Aug 2025 08:17:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=M2DJWK5m2HMcRNzNI9LLjZ6DuY0uzF2+CX5Tpna42Oo=; b=ic7bARfKMZMY DoJ9GfoA+kfEdYzOIPiufWqD4wVJolisLmapsnWo2T0FztUpFdHZQhzhbyKgdhHACzQQOVPSmjyzH 04U3s+BbyCpjUOOYy4bYyDSKjc4cW3PIMj6T4T+dd4OuxU+acXtWFMG5DBb5JQNhx1O+E7hgVLuXm rNeXrs+WV+93pjGJqYEFOJ2UITwcx4hJHhdM7zxTXASauiAomFi/AudyH8Jj+we1ueTb9jQ7p9Ter wiy3DrsEzPrsWednQmKG36PZBhZcFLGwxtQpZo0KeyREbnx7PH6JmKldN270wQCr6sKECnW6UF1Oz Xrs7/Fqozr+oGWVdCbH29g==; Date: Wed, 13 Aug 2025 15:17:29 +0300 Message-Id: <86349vo1pi.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87sehvu40v.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 13 Aug 2025 09:30:56 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> <86ectgag25.fsf@gnu.org> <875xesij2d.fsf@mail.linkov.net> <868qjo9zva.fsf@gnu.org> <87sehvu40v.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Wed, 13 Aug 2025 09:30:56 +0300 > > >> >> > OK, so can you describe the workflow of someone who wants to use > >> >> > markdown-ts-mode for Markdown files? Currently, they need to load > >> >> > markdown-ts-mode; what would be the replacement of that if this patch > >> >> > is installed? > >> >> > >> >> Here is the workflow: when someone wants to use markdown-ts-mode for > >> >> Markdown files, then the user customizes the option 'treesit-enabled-modes' > >> >> either to t (enables all ts-modes) or to the list '(markdown-ts-mode)' > >> >> (by clicking on the checkbox "markdown-ts-mode"). Then no need to > >> >> load markdown-ts-mode manually: visiting a Markdown file will autoload > >> >> markdown-ts-mode. > >> > > >> > OK, and what would they need to do if they then change their minds and > >> > want to stop using markdown-ts-mode, switching back to markdown-mode? > >> > >> Then they need to customize 'treesit-enabled-modes' again, > >> and uncheck the checkbox with the label "markdown-ts-mode". > > > > But how to cause buffers already under TS mode to use the non-TS one? > > Changing modes of existing buffers would be a strange thing to do. > There are no other user options whose customization visits existing buffers > to change their modes. But customizing treesit-enabled-modes and then killing the buffer and revisiting the file will use the non-TS mode, yes? Or manually invoking the non-TS mode in the buffer without killing it? > >> > Also, what will happen in customize-group, when they select the > >> > "Languages" group? And what if they then select, say, Lua Ts group > >> > when the relevant grammar is not installed? > >> > >> Then no warnings are displayed. > > > > But are the options of Lua Ts group still visible and customizable? > > Yes, all options are customizable, and there are no warnings anymore. OK, thanks. Then I guess it would be okay to modify all the TS modes like you've shown with a single one, and accompany the change with a description in NEWS (and perhaps also in the user manual) how to go about enabling and disabling TS-based modes. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 14 12:42:22 2025 Received: (at 79180) by debbugs.gnu.org; 14 Aug 2025 16:42:22 +0000 Received: from localhost ([127.0.0.1]:34363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umb1x-0003OC-Ug for submit@debbugs.gnu.org; Thu, 14 Aug 2025 12:42:22 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:46228) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umb1u-0003Na-5V for 79180@debbugs.gnu.org; Thu, 14 Aug 2025 12:42:19 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4c2rcZ0wmjz9tSK; Thu, 14 Aug 2025 18:42:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1755189726; 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=Vpe2Xrlsmr9BCVevlTXciwhU30xUuCdjp7sA0AAlyT8=; b=Cm4bEEgLV72C3jCc38vOq3BuZsndmms7Rhg9PpNTwoAg7ivyyV7XJg4Hwy2vAE4gfy+0NX 20ycTFnKX35aPUXU5YsYiQ06ei6BfIZyiH8wTK/vccnqr5sY92pcSZfzj0MCFnu8RGxCAe wAZdQ3NyMi8gdArriySowMpYYjWUqnpH2ZZvGPVk6FPnoa3OQQKJ/PNlYkAPEDryRYnZlc VtibC869DmIycu+6OlZ7iiAEcAJ7kbZGY+qnP77AWrSLYZboxq1AyZo0Sms6NQojY2A6sZ 3uw8IYeA9A5wL9z7UCI1NoWW4ygFdN+zH2tEjxk0S/H58Ct3L9SOFaEx3fiPZw== From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings In-Reply-To: <86349vo1pi.fsf@gnu.org> Organization: LINKOV.NET References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> <86ectgag25.fsf@gnu.org> <875xesij2d.fsf@mail.linkov.net> <868qjo9zva.fsf@gnu.org> <87sehvu40v.fsf@mail.linkov.net> <86349vo1pi.fsf@gnu.org> Date: Thu, 14 Aug 2025 19:40:33 +0300 Message-ID: <87wm75n9m6.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > But customizing treesit-enabled-modes and then killing the buffer and > revisiting the file will use the non-TS mode, yes? Or manually > invoking the non-TS mode in the buffer without killing it? Exactly. > OK, thanks. Then I guess it would be okay to modify all the TS modes > like you've shown with a single one, and accompany the change with a > description in NEWS (and perhaps also in the user manual) how to go > about enabling and disabling TS-based modes. So now pushed with NEWS entry. What would be the right Info node to document this? Maybe (info "(emacs) Program Modes")? From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 15 03:01:14 2025 Received: (at 79180) by debbugs.gnu.org; 15 Aug 2025 07:01:14 +0000 Received: from localhost ([127.0.0.1]:36941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umoR7-0002Ja-Lc for submit@debbugs.gnu.org; Fri, 15 Aug 2025 03:01:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45192) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umoR4-0002JI-5r for 79180@debbugs.gnu.org; Fri, 15 Aug 2025 03:01:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1umoQx-0006Oe-6X; Fri, 15 Aug 2025 03:01:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2moOo8H3VR0C+mI9g2qxkJqhI4WYkv1Df2zuxfebejE=; b=NXxVg9A61fPV /hJRgIsyUvT6UNEOWTwJtKmFlP+R3wjAfiKlG9bWgufPkllnGMg93wDhS13N6+VJWbIAWnJxY62tu kvCSk0+fZ6fvC9sGgI2LJX5GLRsmAaFx3uPLw56NoEj6+sjpiatrHHOj7QSwMJ7nqhOWbwqrurzZI xj1L00AARa1S7mpJnIfDyZ6HLSfuzO+mSFtcY98H7NOVyNNP1EFIn4QTqRqsbkaHrsbRxXNLjw20M RPa5DVH+JU6T/hmhMF0YKBRQufKyenzM9SH1Qs+ibP31azEkajyjO0Zf6iZsUckLxYFJLdmbxhKb2 7QMzWTrW0JtLaKtzXQIMlQ==; Date: Fri, 15 Aug 2025 10:00:56 +0300 Message-Id: <868qjlm5lj.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87wm75n9m6.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 14 Aug 2025 19:40:33 +0300) Subject: Re: bug#79180: 31.0.50; Customize-browse emits treesit warnings References: <86ikj0tz4i.fsf@gnu.org> <87h5yi72lh.fsf@mail.linkov.net> <86pld6nvi5.fsf@gnu.org> <871pplpugp.fsf@mail.linkov.net> <86pld5m4y7.fsf@gnu.org> <87o6snoek8.fsf@mail.linkov.net> <86sehzk3sd.fsf@gnu.org> <87jz3b6r0o.fsf@mail.linkov.net> <86349yjd26.fsf@gnu.org> <87h5ydt64c.fsf@mail.linkov.net> <86ectgag25.fsf@gnu.org> <875xesij2d.fsf@mail.linkov.net> <868qjo9zva.fsf@gnu.org> <87sehvu40v.fsf@mail.linkov.net> <86349vo1pi.fsf@gnu.org> <87wm75n9m6.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79180 Cc: spd@toadstyle.org, 79180@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 (---) > From: Juri Linkov > Cc: spd@toadstyle.org, 79180@debbugs.gnu.org > Date: Thu, 14 Aug 2025 19:40:33 +0300 > > > But customizing treesit-enabled-modes and then killing the buffer and > > revisiting the file will use the non-TS mode, yes? Or manually > > invoking the non-TS mode in the buffer without killing it? > > Exactly. Thanks. What about major-mode-remap-alist, is its customization still in effect for TS-based modes? > > OK, thanks. Then I guess it would be okay to modify all the TS modes > > like you've shown with a single one, and accompany the change with a > > description in NEWS (and perhaps also in the user manual) how to go > > about enabling and disabling TS-based modes. > > So now pushed with NEWS entry. What would be the right Info node > to document this? Maybe (info "(emacs) Program Modes")? I think "Choosing Modes" is better, and we already have there something about related issues. But "Program Modes" could mention this issue and point to "Choose Modes" for the details.