diff options
author | Juri Linkov <juri@linkov.net> | 2018-02-22 23:59:32 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2018-02-22 23:59:32 +0200 |
commit | dad1aeb30760ef524e95e636c22346b051233a38 (patch) | |
tree | e469c48d718e557f8c58e75c00382d721df804e8 /lisp/help.el | |
parent | 8ba61ffd8cebb0ff9f7a219022f3c1f3eac2f6d0 (diff) | |
download | emacs-dad1aeb30760ef524e95e636c22346b051233a38.tar.gz |
* lisp/help.el (view-lossage): Use the same format as in edit-last-kbd-macro.
Call comment-indent with let-bound comment-start and comment-column.
(Bug#30560)
Diffstat (limited to 'lisp/help.el')
-rw-r--r-- | lisp/help.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/help.el b/lisp/help.el index 4899bc44e03..9575f5b090c 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -465,8 +465,8 @@ To record all your input, use `open-dribble-file'." (princ (mapconcat (lambda (key) (cond ((and (consp key) (null (car key))) - (format "[%s]\n" (if (symbolp (cdr key)) (cdr key) - "anonymous-command"))) + (format ";; %s\n" (if (symbolp (cdr key)) (cdr key) + "anonymous-command"))) ((or (integerp key) (symbolp key) (listp key)) (single-key-description key)) (t @@ -475,11 +475,11 @@ To record all your input, use `open-dribble-file'." " ")) (with-current-buffer standard-output (goto-char (point-min)) - (while (not (eobp)) - (move-to-column 50) - (unless (eolp) - (fill-region (line-beginning-position) (line-end-position))) - (forward-line 1)) + (let ((comment-start ";; ") + (comment-column 24)) + (while (not (eobp)) + (comment-indent) + (forward-line 1))) ;; jidanni wants to see the last keystrokes immediately. (set-marker help-window-point-marker (point))))) |