mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-07 15:21:46 +00:00
* 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)
This commit is contained in:
parent
8ba61ffd8c
commit
dad1aeb307
8
etc/NEWS
8
etc/NEWS
@ -160,6 +160,14 @@ bound to 'C-c C-f'.
|
|||||||
'dired-do-copy' and 'dired-rename-file' should create non-existent
|
'dired-do-copy' and 'dired-rename-file' should create non-existent
|
||||||
directories in the destination.
|
directories in the destination.
|
||||||
|
|
||||||
|
** Help
|
||||||
|
|
||||||
|
*** 'C-h l' (view-lossage) now displays last keystrokes and commands
|
||||||
|
in the same format as the edit buffer of edit-last-kbd-macro.
|
||||||
|
This makes possible to copy the lines from the buffer generated
|
||||||
|
by 'view-lossage', yank them to the buffer "*Edit Macro*" created by
|
||||||
|
'edit-last-kbd-macro', and save the macro by 'C-c C-c'.
|
||||||
|
|
||||||
** Ibuffer
|
** Ibuffer
|
||||||
|
|
||||||
---
|
---
|
||||||
|
10
lisp/help.el
10
lisp/help.el
@ -465,7 +465,7 @@ To record all your input, use `open-dribble-file'."
|
|||||||
(princ (mapconcat (lambda (key)
|
(princ (mapconcat (lambda (key)
|
||||||
(cond
|
(cond
|
||||||
((and (consp key) (null (car key)))
|
((and (consp key) (null (car key)))
|
||||||
(format "[%s]\n" (if (symbolp (cdr key)) (cdr key)
|
(format ";; %s\n" (if (symbolp (cdr key)) (cdr key)
|
||||||
"anonymous-command")))
|
"anonymous-command")))
|
||||||
((or (integerp key) (symbolp key) (listp key))
|
((or (integerp key) (symbolp key) (listp key))
|
||||||
(single-key-description key))
|
(single-key-description key))
|
||||||
@ -475,11 +475,11 @@ To record all your input, use `open-dribble-file'."
|
|||||||
" "))
|
" "))
|
||||||
(with-current-buffer standard-output
|
(with-current-buffer standard-output
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
|
(let ((comment-start ";; ")
|
||||||
|
(comment-column 24))
|
||||||
(while (not (eobp))
|
(while (not (eobp))
|
||||||
(move-to-column 50)
|
(comment-indent)
|
||||||
(unless (eolp)
|
(forward-line 1)))
|
||||||
(fill-region (line-beginning-position) (line-end-position)))
|
|
||||||
(forward-line 1))
|
|
||||||
;; jidanni wants to see the last keystrokes immediately.
|
;; jidanni wants to see the last keystrokes immediately.
|
||||||
(set-marker help-window-point-marker (point)))))
|
(set-marker help-window-point-marker (point)))))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user