1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-23 16:30:46 -08:00

Always check non-major-mode replacements in which-key--maybe-replace

This commit is contained in:
Justin Burkett 2019-02-25 09:57:03 -05:00
parent 3b184d6f0c
commit d9122c48b2

View file

@ -1437,9 +1437,9 @@ which are strings. KEY is of the form produced by `key-binding'."
one-match)
(if pseudo-binding
pseudo-binding
(let* ((all-repls (or (cdr-safe
(assq major-mode which-key-replacement-alist))
which-key-replacement-alist)))
(let* ((all-repls
(append (cdr-safe (assq major-mode which-key-replacement-alist))
which-key-replacement-alist)))
(dolist (repl all-repls key-binding)
(when (and (or which-key-allow-multiple-replacements
(not one-match))