From 385bcc6117349363a562871815005c87f9483590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sat, 31 Jan 2026 15:52:26 +0100 Subject: [PATCH] Fix lazy doc string fontify bug in elisp-byte-code-mode (bug#80292) * lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize): Reset point to just after the start of the previous match so that we don't skip past the end of the lazy string, which can happen if it's zero-length; that could lead to an infinite loop. --- lisp/progmodes/elisp-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index c4fb6946aeb..14cc5abd6a8 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -1783,7 +1783,9 @@ and `eval-expression-print-level'. (funcall (syntax-propertize-rules (emacs-lisp-byte-code-comment-re - (1 (prog1 "< b" (elisp--byte-code-comment end (point)))))) + (1 (prog1 "< b" + (goto-char (match-end 1)) + (elisp--byte-code-comment end (point)))))) start end)) ;;;###autoload