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

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

[elpa] externals/which-key 2165957 6/6: Allow binding to symbols in whic


From: ELPA Syncer
Subject: [elpa] externals/which-key 2165957 6/6: Allow binding to symbols in which-key-C-h-dispatch
Date: Thu, 25 Nov 2021 21:57:38 -0500 (EST)

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

    Allow binding to symbols in which-key-C-h-dispatch
    
    Fixes #326
---
 which-key.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index 1daebc9..e55197e 100644
--- a/which-key.el
+++ b/which-key.el
@@ -2379,7 +2379,10 @@ prefix) if `which-key-use-C-h-commands' is non nil."
                                      " 1..9"
                                      which-key-separator "digit-arg"))
                                    'face 'which-key-note-face)))
-                  (key (string (read-key prompt)))
+                  (key (let ((key (read-key prompt)))
+                         (if (numberp key)
+                             (string key)
+                           (vector key))))
                   (cmd (lookup-key which-key-C-h-map key))
                   (which-key-inhibit t))
              (if cmd (funcall cmd key) (which-key-turn-page 0)))))))



reply via email to

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