emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 e45bd10a3d9: Fix indentation regression in 'C-h l'


From: Eli Zaretskii
Subject: emacs-29 e45bd10a3d9: Fix indentation regression in 'C-h l'
Date: Wed, 29 Mar 2023 07:57:19 -0400 (EDT)

branch: emacs-29
commit e45bd10a3d9cc4be676e43714ea6fb2068b8e614
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]