branch: master commit 1694c6d1790236bce691eacbff00dae5dfa2c24f Author: Justin Burkett <jus...@burkett.cc> Commit: Justin Burkett <jus...@burkett.cc>
Improve which-key--process-define-key-args Specify Prefix Command as an explicit match string to cut down on false positives. --- which-key.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/which-key.el b/which-key.el index fdef15b..1523c00 100644 --- a/which-key.el +++ b/which-key.el @@ -919,8 +919,9 @@ as :before advice for `define-key'." (symbolp (cdr def))) (let ((key-desc (regexp-quote (key-description key)))) (push (cons (cons (format "%s\\'" key-desc) - (when (cdr def) - (format "\\`%s\\'" (symbol-name (cdr def))))) + (format "\\`%s\\'" (if (cdr def) + (symbol-name (cdr def)) + "Prefix Command"))) (cons nil (car def))) which-key-replacement-alist)))))