]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indentation regression in 'C-h l'
authorEli Zaretskii <eliz@gnu.org>
Wed, 29 Mar 2023 11:56:20 +0000 (14:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 29 Mar 2023 11:56:20 +0000 (14:56 +0300)
* lisp/help.el (view-lossage): Fix indentation of commands
when the key sequence includes a semicolon.  (Bug#62453)

lisp/help.el

index 3e94b5046e5c81cab48bce43a60f2cf07c3417ec..6eac037df2cb1219b093945600c3f68713b8e44b 100644 (file)
@@ -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)