mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 08:20:41 -08:00
Fix paging in which-key-manual-update
This commit is contained in:
parent
c47c72d1fe
commit
2cb5ceba55
1 changed files with 8 additions and 5 deletions
13
which-key.el
13
which-key.el
|
|
@ -445,6 +445,7 @@ prefixes in `which-key-paging-prefixes'"
|
|||
"Keymap for C-h commands.")
|
||||
|
||||
(defvar which-key--paging-functions '(which-key-C-h-dispatch
|
||||
which-key-manual-update
|
||||
which-key-turn-page
|
||||
which-key-show-next-page-cycle
|
||||
which-key-show-next-page-no-cycle
|
||||
|
|
@ -2594,11 +2595,13 @@ follows
|
|||
|
||||
This should be set after activating `which-key-mode'."
|
||||
(interactive)
|
||||
(let* ((current-prefix
|
||||
(butlast
|
||||
(listify-key-sequence (which-key--this-command-keys)))))
|
||||
(which-key-reload-key-sequence current-prefix)
|
||||
(which-key--start-timer 0 t)))
|
||||
(if (which-key--popup-showing-p)
|
||||
(which-key-C-h-dispatch)
|
||||
(let* ((current-prefix
|
||||
(butlast
|
||||
(listify-key-sequence (which-key--this-command-keys)))))
|
||||
(which-key-reload-key-sequence current-prefix)
|
||||
(which-key--start-timer 0.05 t))))
|
||||
|
||||
(defun which-key--update ()
|
||||
"Function run by timer to possibly trigger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue