Subject: bug#77017: 31.0.50; Build warning from mhtml-ts-mode

From: Juri Linkov <[email-masked]>
Date: Sun, 30 Mar 2025 09:41:12 +0300

> --- a/lisp/textmodes/mhtml-ts-mode.el
> +++ b/lisp/textmodes/mhtml-ts-mode.el
> @@ -50,13 +50,23 @@
>  ;;; Code:
>  
>  (require 'treesit)
> -(require 'html-ts-mode)
>  (require 'css-mode) ;; for embed css into html
>  (require 'js) ;; for embed javascript into html

This change broke loading of mhtml-ts-mode:

0. emacs -Q
1. visit an html file
2. M-x mhtml-ts-mode

Debugger entered--Lisp error: (void-variable html-ts-mode--treesit-font-lock-feature-list)
  (defvar mhtml-ts-mode--treesit-font-lock-feature-list ...)
  command-execute(mhtml-ts-mode record)
  execute-extended-command(nil "mhtml-ts-mode" nil)
  funcall-interactively(execute-extended-command nil "mhtml-ts-mode" nil)
  command-execute(execute-extended-command)