emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/which-key d9122c4 7/8: Always check non-major-mode repl


From: Stefan Monnier
Subject: [elpa] externals/which-key d9122c4 7/8: Always check non-major-mode replacements in which-key--maybe-replace
Date: Mon, 7 Sep 2020 16:26:58 -0400 (EDT)

branch: externals/which-key
commit d9122c48b2b702d42cf044cbb80fde2c7caf5869
Author: Justin Burkett <justin@burkett.cc>
Commit: Justin Burkett <justin@burkett.cc>

    Always check non-major-mode replacements in which-key--maybe-replace
---
 which-key.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/which-key.el b/which-key.el
index 21d159a..068c23c 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'."
          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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]