From 23a01c9fc0d1c489a355b2bec07f4e4a791c3db9 Mon Sep 17 00:00:00 2001 From: justbur Date: Thu, 17 Mar 2016 13:04:33 -0400 Subject: [PATCH] Make show-standard-help narrow to prefix This is what describe-prefix-bindings does and it should be consistent. --- which-key.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 490ca24aca0..3aaf86c97e1 100644 --- a/which-key.el +++ b/which-key.el @@ -1780,7 +1780,13 @@ Usually this is `describe-prefix-bindings'." (interactive) (let ((which-key-inhibit t)) (which-key--hide-popup-ignore-command) - (funcall which-key--prefix-help-cmd-backup))) + (cond ((eq which-key--prefix-help-cmd-backup + 'describe-prefix-bindings) + ;; This is essentially what `describe-prefix-bindings' does + (describe-bindings + (kbd (which-key--current-key-string)))) + ((functionp which-key--prefix-help-cmd-backup) + (funcall which-key--prefix-help-cmd-backup))))) ;;;###autoload (defun which-key-show-next-page-no-cycle ()