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.
This commit is contained in:
Mattias Engdegård 2026-01-31 15:52:26 +01:00
parent e08efecd96
commit 385bcc6117

View file

@ -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