From d939e06fdac9b158e06a8633186ffa41e396e659 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Tue, 4 Oct 2016 16:48:40 -0400 Subject: [PATCH] Fix -maybe-get-prefix-title use of key-binding key-binding doesn't work with all forms of key strings. See #143 --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 6e92281fd31..61ef9014a8a 100644 --- a/which-key.el +++ b/which-key.el @@ -1303,7 +1303,7 @@ An empty stiring is returned if no title exists." (mode-alist (assq major-mode alist)) (mode-res (when mode-alist (assoc-string keys mode-alist))) - (binding (key-binding keys)) + (binding (key-binding (kbd keys))) (alternate (when (and binding (symbolp binding)) (symbol-name binding)))) (cond (mode-res (cdr mode-res))