mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-11 09:20:51 +00:00
Add translation keymap support (#210)
This commit is contained in:
parent
77586e62b6
commit
ba03e7e5bc
@ -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…
Reference in New Issue
Block a user