(with-substitute-command-keys-test
(test "\\{minibuffer-local-must-match-map}"
"
-key binding
+Key Binding
-------------------------------------------------------------------------------
C-g abort-minibuffers
TAB minibuffer-complete
(help-tests-major-mode)
(test "\\{help-tests-major-mode-map}"
"
-key binding
+Key Binding
-------------------------------------------------------------------------------
( .. ) short-range
1 .. 4 foo-range
(help-tests-minor-mode)
(test "\\{help-tests-major-mode-map}"
"
-key binding
+Key Binding
-------------------------------------------------------------------------------
( .. ) short-range
1 .. 4 foo-range
(define-key help-tests-major-mode-map [remap foo] 'bar)
(test "\\{help-tests-major-mode-map}"
"
-key binding
+Key Binding
-------------------------------------------------------------------------------
<remap> Prefix Command
: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
")))))
: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
<menu-bar> Prefix Command
(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)
(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
")))))
(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
")))))
(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