GNU bug report logs - #79180
31.0.50; Customize-browse emits treesit warnings

Previous Next

Package: emacs;

Reported by: Sean Devlin <spd <at> toadstyle.org>

Date: Tue, 5 Aug 2025 20:19:02 UTC

Severity: normal

Merged with 64487

Found in versions 29.0.92, 31.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: spd <at> toadstyle.org, 79180 <at> debbugs.gnu.org
Subject: bug#79180: 31.0.50; Customize-browse emits treesit warnings
Date: Sun, 10 Aug 2025 10:57:06 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: spd <at> toadstyle.org,  79180 <at> 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?




This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.