mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 00:10:48 -08:00
Add translation keymap support (#210)
This commit is contained in:
parent
77586e62b6
commit
ba03e7e5bc
2 changed files with 6 additions and 2 deletions
|
|
@ -130,20 +130,23 @@
|
|||
(define-key map "c" "c")
|
||||
(define-key map "dd" "dd")
|
||||
(define-key map "eee" "eee")
|
||||
(define-key map "f" [123 45 6])
|
||||
(should (equal
|
||||
(sort (which-key--get-keymap-bindings map)
|
||||
(lambda (a b) (string-lessp (car a) (car b))))
|
||||
'(("b" . "ignore")
|
||||
("c" . "c")
|
||||
("d" . "Prefix Command")
|
||||
("e" . "Prefix Command"))))
|
||||
("e" . "Prefix Command")
|
||||
("f" . "{ - C-f"))))
|
||||
(should (equal
|
||||
(sort (which-key--get-keymap-bindings map t)
|
||||
(lambda (a b) (string-lessp (car a) (car b))))
|
||||
'(("b" . "ignore")
|
||||
("c" . "c")
|
||||
("d d" . "dd")
|
||||
("e e e" . "eee"))))))
|
||||
("e e e" . "eee")
|
||||
("f" . "{ - C-f"))))))
|
||||
|
||||
(provide 'which-key-tests)
|
||||
;;; which-key-tests.el ends here
|
||||
|
|
|
|||
|
|
@ -1741,6 +1741,7 @@ ones. PREFIX is for internal use and should not be used."
|
|||
((eq 'lambda (car-safe def)) "lambda")
|
||||
((eq 'menu-item (car-safe def)) "menu-item")
|
||||
((stringp def) def)
|
||||
((vectorp def) (key-description def))
|
||||
(t "unknown")))
|
||||
bindings :test (lambda (a b) (string= (car a) (car b)))))))))
|
||||
keymap)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue