Subject: bug#74610: 31.0.50; Submitting mhtml-ts-mode, treesitter alternative to mhtml-mode

From: Juri Linkov <[email-masked]>
Date: Sat, 15 Feb 2025 19:39:55 +0200

> Ciao Jury,
> I was just about to write, you anticipated me.
> The function `html-ts-mode--outline-predicate`, does not work correctly in 
> `mhtml-ts-mode`, the function seems to fail to calculate the end of the tag it 
> is on (see outline_issue_1.png)
>
> And, exactly as you wrote, with treesit-outline-predicate set to nil it does 
> not work because the function `treesit-outline-predicate--from-imenu` does not 
> check the variable `treesit-aggregated-simple-imenu-settings` but only 
> `treesit-simple-imenu-settings`.
>
> I attach a new patch adapted to the latest commits.

Thanks for adapting latest changes to your patch!

Is it time now to push your patch?

Delaying this will hamper the development
since after pushing it will be possible to
fix more issues such as adapting outline-predicate
to `treesit-aggregated-simple-imenu-settings`, etc.