Function: which-key--try-2-side-windows
which-key--try-2-side-windows is a byte-compiled function defined in
which-key.el.gz.
Signature
(which-key--try-2-side-windows BINDINGS PREFIX-KEYS PREFIX-TITLE LOC1 LOC2 &rest IGNORE)
Documentation
Try to show BINDINGS (PAGE-N) in LOC1 first.
Only if no bindings fit fallback to LOC2.
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--try-2-side-windows
(bindings prefix-keys prefix-title loc1 loc2 &rest _ignore)
"Try to show BINDINGS (PAGE-N) in LOC1 first.
Only if no bindings fit fallback to LOC2."
(let (pages1)
(let ((which-key-side-window-location loc1)
(which-key--multiple-locations t))
(setq pages1 (which-key--create-pages
bindings prefix-keys prefix-title)))
(if pages1
(progn
(setq which-key--pages-obj pages1)
(let ((which-key-side-window-location loc1)
(which-key--multiple-locations t))
(which-key--show-page))
loc1)
(let ((which-key-side-window-location loc2)
(which-key--multiple-locations t))
(setq which-key--pages-obj
(which-key--create-pages bindings prefix-keys prefix-title))
(which-key--show-page)
loc2))))