From e45bd10a3d9cc4be676e43714ea6fb2068b8e614 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 29 Mar 2023 14:56:20 +0300 Subject: [PATCH] Fix indentation regression in 'C-h l' * lisp/help.el (view-lossage): Fix indentation of commands when the key sequence includes a semicolon. (Bug#62453) --- lisp/help.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/help.el b/lisp/help.el index 3e94b5046e5..6eac037df2c 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -689,6 +689,10 @@ To record all your input, use `open-dribble-file'." (with-current-buffer standard-output (goto-char (point-min)) (let ((comment-start ";; ") + ;; Prevent 'comment-indent' from handling a single + ;; semicolon as the beginning of a comment. + (comment-start-skip ";; ") + (comment-use-syntax nil) (comment-column 24)) (while (not (eobp)) (comment-indent) -- 2.39.2