From eeb09ff41ba2f6b9a199ddd9de58191583eecd98 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 1 Nov 2021 04:02:16 +0100 Subject: [PATCH] Fix infloop in help-make-xrefs in certain keymaps * lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding after changes to how keymaps are output. --- lisp/help-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 0f80c265733..67453453d3b 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -661,8 +661,9 @@ that." (help-xref-button 3 'help-function symbol)) (forward-line) ;; Skip empty line. - (while (or (eolp) - (looking-at-p " *(this binding")) + (while (and (not (eobp)) + (or (eolp) + (looking-at-p " *(this binding"))) (forward-line))))))) (set-syntax-table stab)) ;; Delete extraneous newlines at the end of the docstring -- 2.39.5