emacs-31 94ee683d63e: markdown-ts-mode: Fix code-block fontification leak
Eshel Yaron via Mailing list for Emacs changes <[email protected]> Sat, 18 Jul 2026 10:06:33 -0400 (EDT)
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: emacs-31 commit 94ee683d63e0f0edcfc29c617b1eb5668183c19b Author: Eshel Yaron <[email protected]> Commit: Eshel Yaron <[email protected]> markdown-ts-mode: Fix code-block fontification leak * lisp/textmodes/markdown-ts-mode.el (markdown-ts--fontify-non-ts-collect-faces): Prevent 'font-lock-ensure' from widening and fontifying outside the intended code-block (bug#81412). --- lisp/textmodes/markdown-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/markdown-ts-mode.el b/lisp/textmodes/markdown-ts-mode.el index a27255ca645..d01b8c09a3c 100644 --- a/lisp/textmodes/markdown-ts-mode.el +++ b/lisp/textmodes/markdown-ts-mode.el @@ -2989,7 +2989,7 @@ content as a standalone markdown document, which is what we want." 'markdown-ts-inhibit-code-block-mode-warnings (delay-mode-hooks (funcall mode))) (narrow-to-region beg end) - (font-lock-ensure) + (let ((font-lock-dont-widen t)) (font-lock-ensure)) (let ((pos (point-min))) (while (< pos (point-max)) (let ((next (next-single-property-change