From 39bea8b59cd140ff72b63418631c24af84df3b57 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 25 Apr 2021 11:46:00 +0200 Subject: [PATCH] Show correct lossage size in help-for-help * lisp/help.el (help-for-help): Show correct lossage size. Add trailing newline. Suggested by Gregory Heytings . --- lisp/help.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/help.el b/lisp/help.el index 4dcb2353ceb..8234bbd34b6 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -273,7 +273,8 @@ Do not call this in the scope of `with-help-window'." ("help-with-tutorial" "Start the Emacs tutorial") ("view-echo-area-messages" "Show recent messages (from echo area)") - ("view-lossage" "Show last 300 input keystrokes (lossage)") + ("view-lossage" (format "Show last %d input keystrokes (lossage)" + (lossage-size))) ("display-local-help" "Show local help at point")) ("Miscellaneous" ("about-emacs" "About Emacs") @@ -298,7 +299,8 @@ Do not call this in the scope of `with-help-window'." "Describe language environment") ("describe-syntax" "Show current syntax table") ("view-hello-file" - "Display the HELLO file illustrating various scripts"))))) + "Display the HELLO file illustrating various scripts")))) + "\n") help-map help-for-help-buffer-name) -- 2.39.5