I will cc Stefan on the miniscule chance he still remembers anything about this and can save me time.
Otherwise, I will see if I can pinpoint the regression (or if I messed up the bisect).
Author: Stefan Monnier <
monnier@iro.umontreal.ca>
Date: Fri Nov 29 11:51:48 2019 -0500
* lisp/textmodes/mhtml-mode.el: Fix bug#38372
The `sgml-syntax-propertize-rules` rely on the `sgml--syntax-propertize-ppss`
setup by `sgml-syntax-propertize` so it is not correct/safe to use
them directly like html used to do.
Change `sgml-syntax-propertize` so it can be used by mhtml,
and then adjust mhtml-mode accordingly.
* lisp/textmodes/mhtml-mode.el: Remove redundant `eval-and-compile`.
Only require cl-lib at compile-time.
(mhtml--syntax-propertize): New const, extracted from mhtml-syntax-propertize.
(mhtml-syntax-propertize): Use `sgml-syntax-propertize`.
* lisp/textmodes/sgml-mode.el (sgml--syntax-propertize): New const,
extracted from sgml-syntax-propertize.
(sgml-syntax-propertize): Add optional `rules-function` arg.
lisp/textmodes/mhtml-mode.el | 44 ++++++++++++++++++++------------------------
lisp/textmodes/sgml-mode.el | 13 ++++++++-----
2 files changed, 28 insertions(+), 29 deletions(-)