]> git.eshelyaron.com Git - emacs.git/commitdiff
Show correct lossage size in help-for-help
authorStefan Kangas <stefan@marxist.se>
Sun, 25 Apr 2021 09:46:00 +0000 (11:46 +0200)
committerStefan Kangas <stefan@marxist.se>
Sun, 25 Apr 2021 09:52:40 +0000 (11:52 +0200)
* lisp/help.el (help-for-help): Show correct lossage size.  Add
trailing newline.
Suggested by Gregory Heytings <gregory@heytings.org>.

lisp/help.el

index 4dcb2353ceb4341849297076faa8cd9b781c09dc..8234bbd34b6bd345b48835a8dd067861060f0067 100644 (file)
@@ -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)