aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Burkett2019-02-25 09:57:03 -0500
committerJustin Burkett2019-02-25 09:57:03 -0500
commitd9122c48b2b702d42cf044cbb80fde2c7caf5869 (patch)
treeacf4f9906761edd7f1fd5c94623d3f88dac239d6
parent3b184d6f0c78231f9e6c2ed95c2e8d218ae56fb8 (diff)
downloademacs-d9122c48b2b702d42cf044cbb80fde2c7caf5869.tar.gz
emacs-d9122c48b2b702d42cf044cbb80fde2c7caf5869.zip
Always check non-major-mode replacements in which-key--maybe-replace
-rw-r--r--which-key.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/which-key.el b/which-key.el
index 21d159a448d..068c23cb5e6 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1437,9 +1437,9 @@ which are strings. KEY is of the form produced by `key-binding'."
1437 one-match) 1437 one-match)
1438 (if pseudo-binding 1438 (if pseudo-binding
1439 pseudo-binding 1439 pseudo-binding
1440 (let* ((all-repls (or (cdr-safe 1440 (let* ((all-repls
1441 (assq major-mode which-key-replacement-alist)) 1441 (append (cdr-safe (assq major-mode which-key-replacement-alist))
1442 which-key-replacement-alist))) 1442 which-key-replacement-alist)))
1443 (dolist (repl all-repls key-binding) 1443 (dolist (repl all-repls key-binding)
1444 (when (and (or which-key-allow-multiple-replacements 1444 (when (and (or which-key-allow-multiple-replacements
1445 (not one-match)) 1445 (not one-match))