Subject: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam

From: Eli Zaretskii <[email-masked]>
Date: Thu, 05 Jan 2023 09:44:46 +0200

> From: Ihor Radchenko <[email-masked]>
> Cc: Fu Yuan <[email-masked]>, Stefan Monnier <[email-masked]>,
>  Lars Ingebrigtsen <[email-masked]>, Theodor Thornhill <[email-masked]>,
>  Jostein Kjønigsen <[email-masked]>,
>  [email-masked],
>  [email-masked], [email-masked]
> Date: Thu, 05 Jan 2023 07:06:24 +0000
> 
> Eli Zaretskii <[email-masked]> 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?