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

Previous Next

Package: emacs;

Reported by: Vincenzo Pupillo <v.pupillo <at> gmail.com>

Date: Fri, 11 Jul 2025 15:37:01 UTC

Severity: normal

Tags: patch

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


Message #31 received at 78994 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78994 <at> debbugs.gnu.org, v.pupillo <at> gmail.com
Subject: Re: bug#78994: 31.0.50; [PATCH] php-ts-mode: `php-ts-mode' depends
 on `mhtml-ts-mode' instead of JS,CSS and HTML.
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?




This bug report was last modified 3 days ago.

Previous Next


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