Subject: bug#78994: 31.0.50; [PATCH] php-ts-mode: `php-ts-mode' depends on `mhtml-ts-mode' instead of JS,CSS and HTML.

From: Juri Linkov <[email-masked]>
Date: Sun, 10 Aug 2025 09:44:54 +0300

> Unfortunately, I was forced to revert the changeset, since it failed
> the build without the tree-sitter library:
>
>   In toplevel form:
>   progmodes/php-ts-mode.el:72:11: Error: Symbol’s function definition is void: treesit-query-compile
>
> Line 72 is where it requires mhtml-ts-mode, but I have no idea why
> this causes the error.  Could you please look into fixing this?

It seems not only `treesit-query-compile` needs a guard
`(when (treesit-available-p) ...)` in the variables default values,
but also `treesit-range-rules` requires such a guard as well.
Can we find a way to avoid such error-prone guards?