From: Lars Ingebrigtsen Date: Mon, 1 Nov 2021 02:26:26 +0000 (+0100) Subject: Say "Key/Binding" instead of "key/binding" in `C-h b' X-Git-Tag: emacs-29.0.90~3671^2~312 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0882e98becea0e33333d36fa94fb434a58d7f247;p=emacs.git Say "Key/Binding" instead of "key/binding" in `C-h b' * lisp/help.el (describe-map-tree): Capitalize the heading. --- diff --git a/lisp/help.el b/lisp/help.el index c4f81401eb9..fcb23fa0459 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -1317,7 +1317,7 @@ Any inserted text ends in two newlines (used by (concat " Starting With " (help--key-description-fontified prefix))) ":\n")) - "\nkey binding\n" + "\nKey Binding\n" (make-separator-line))))))) (defun help--shadow-lookup (keymap key accept-default remap) diff --git a/test/lisp/help-tests.el b/test/lisp/help-tests.el index f9609d8444f..05ade12cf19 100644 --- a/test/lisp/help-tests.el +++ b/test/lisp/help-tests.el @@ -92,7 +92,7 @@ (with-substitute-command-keys-test (test "\\{minibuffer-local-must-match-map}" " -key binding +Key Binding ------------------------------------------------------------------------------- C-g abort-minibuffers TAB minibuffer-complete @@ -249,7 +249,7 @@ M-g M-c switch-to-completions (help-tests-major-mode) (test "\\{help-tests-major-mode-map}" " -key binding +Key Binding ------------------------------------------------------------------------------- ( .. ) short-range 1 .. 4 foo-range @@ -267,7 +267,7 @@ x foo-original (help-tests-minor-mode) (test "\\{help-tests-major-mode-map}" " -key binding +Key Binding ------------------------------------------------------------------------------- ( .. ) short-range 1 .. 4 foo-range @@ -288,7 +288,7 @@ x foo-original (define-key help-tests-major-mode-map [remap foo] 'bar) (test "\\{help-tests-major-mode-map}" " -key binding +Key Binding ------------------------------------------------------------------------------- Prefix Command @@ -305,7 +305,7 @@ key binding :help "Help text")))))) (describe-map-tree map nil nil nil nil t nil nil nil) (should (equal (buffer-string) " -key binding +Key Binding ------------------------------------------------------------------------------- C-a foo "))))) @@ -320,7 +320,7 @@ C-a foo :help "Help text")))))) (describe-map-tree map nil nil nil nil nil nil nil nil) (should (equal (buffer-string) " -key binding +Key Binding ------------------------------------------------------------------------------- C-a foo Prefix Command @@ -336,7 +336,7 @@ C-a foo (shadow-maps '((keymap . ((1 . baz)))))) (describe-map-tree map t shadow-maps nil nil t nil nil t) (should (equal (buffer-string) " -key binding +Key Binding ------------------------------------------------------------------------------- C-a foo (this binding is currently shadowed) @@ -351,7 +351,7 @@ C-b bar (shadow-maps '((keymap . ((1 . baz)))))) (describe-map-tree map t shadow-maps nil nil t nil nil nil) (should (equal (buffer-string) " -key binding +Key Binding ------------------------------------------------------------------------------- C-b bar "))))) @@ -363,7 +363,7 @@ C-b bar (2 . undefined))))) (describe-map-tree map t nil nil nil nil nil nil nil) (should (equal (buffer-string) " -key binding +Key Binding ------------------------------------------------------------------------------- C-a foo "))))) @@ -375,7 +375,7 @@ C-a foo (2 . undefined))))) (describe-map-tree map nil nil nil nil nil nil nil nil) (should (equal (buffer-string) " -key binding +Key Binding ------------------------------------------------------------------------------- C-a foo C-b undefined