aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-11-01 01:44:01 +0100
committerLars Ingebrigtsen2021-11-01 01:44:01 +0100
commit686d85c767d7c14d0cc6351701396cd71da37630 (patch)
treee3b0b08c240877227926bc9d961a72c6070fe8fb /src
parentc825c825256475ac5c74882811a44228140f18ee (diff)
downloademacs-686d85c767d7c14d0cc6351701396cd71da37630.tar.gz
emacs-686d85c767d7c14d0cc6351701396cd71da37630.zip
Include the major mode name in the `C-h b' output
* lisp/calc/calc-help.el (calc-describe-bindings): Don't add the name since it's there now. * src/keymap.c (Fdescribe_buffer_bindings): Include the major mode name for symmetry with the minor modes (and because it's easy to forget).
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 08f37dbd8b5..29d2ca7ab7e 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2933,7 +2933,10 @@ You type Translation\n\
2933 { 2933 {
2934 if (EQ (start1, BVAR (XBUFFER (buffer), keymap))) 2934 if (EQ (start1, BVAR (XBUFFER (buffer), keymap)))
2935 { 2935 {
2936 Lisp_Object msg = build_unibyte_string ("\f\nMajor Mode Bindings"); 2936 Lisp_Object msg =
2937 CALLN (Fformat,
2938 build_unibyte_string ("\f\n`%s' Major Mode Bindings"),
2939 XBUFFER (buffer)->major_mode_);
2937 CALLN (Ffuncall, 2940 CALLN (Ffuncall,
2938 Qdescribe_map_tree, 2941 Qdescribe_map_tree,
2939 start1, Qt, shadow, prefix, 2942 start1, Qt, shadow, prefix,