Function: which-key--popup-max-dimensions
which-key--popup-max-dimensions is a byte-compiled function defined in
which-key.el.gz.
Signature
(which-key--popup-max-dimensions)
Documentation
Return maximum dimension available for popup.
Dimension functions should return the maximum possible (height
. width) of the intended popup. SELECTED-WINDOW-WIDTH is the
width of currently active window, not the which-key buffer
window.
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
;;; Max dimension of available window functions
(defun which-key--popup-max-dimensions ()
"Return maximum dimension available for popup.
Dimension functions should return the maximum possible (height
. width) of the intended popup. SELECTED-WINDOW-WIDTH is the
width of currently active window, not the which-key buffer
window."
(cl-ecase which-key-popup-type
(minibuffer (which-key--minibuffer-max-dimensions))
(side-window (which-key--side-window-max-dimensions))
(frame (which-key--frame-max-dimensions))
(custom (funcall which-key-custom-popup-max-dimensions-function
(window-width)))))