1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-01 03:11:09 -08:00

Fix show-next-page problem with mult events

Need to add (t . event) to unread-command-events to force emacs to add
each event to the current command's sequence. See docs for
unread-command-events.
This commit is contained in:
justbur 2015-07-25 10:19:24 -04:00
parent 39f4bb01f0
commit cf6ffc985b

View file

@ -1003,7 +1003,9 @@ enough space based on your settings and frame size." prefix-keys)
(1+ which-key--current-page-n) 0)))
(which-key--stop-timer)
(setq unread-command-events
(listify-key-sequence which-key--current-prefix))
;; forces event into current key sequence
(mapcar (lambda (ev) (cons t ev))
(listify-key-sequence which-key--current-prefix)))
(if which-key--last-try-2-loc
(let ((which-key-side-window-location which-key--last-try-2-loc))
(which-key--show-page next-page))