Subject: Re: bug#79215: 31.0.50; emacs build fails with tree-sitter (bisected)

From: Juri Linkov <[email-masked]>
Date: Mon, 11 Aug 2025 19:20:24 +0300

> Thanks.  Does the patch below fix the problem?
> [...]
> -   (when (treesit-ensure-installed 'jsdoc)
> +   (when (treesit-language-available-p 'jsdoc t)

'c-ts-mode' uses such a nice solution that the 'doxygen' grammar
that more-less corresponds to the 'jsdoc' grammar has
a user option 'c-ts-mode-enable-doxygen' that is used like this:

      (when (and c-ts-mode-enable-doxygen
                 (treesit-ensure-installed 'doxygen))

'jsdoc' could do the same with a new option
'js-ts-mode-enable-jsdoc'.