1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-26 01:40:53 -08:00

Make show-standard-help narrow to prefix

This is what describe-prefix-bindings does and it should be consistent.
This commit is contained in:
justbur 2016-03-17 13:04:33 -04:00
parent 9df87e6e36
commit 23a01c9fc0

View file

@ -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 ()