Function: which-key--fit-buffer-to-window-horizontally
which-key--fit-buffer-to-window-horizontally is a byte-compiled
function defined in which-key.el.gz.
Signature
(which-key--fit-buffer-to-window-horizontally &optional WINDOW &rest PARAMS)
Documentation
Slightly modified version of fit-buffer-to-window.
Use &rest params because fit-buffer-to-window has a different
call signature in different Emacs versions
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--fit-buffer-to-window-horizontally
(&optional window &rest params)
"Slightly modified version of `fit-buffer-to-window'.
Use &rest params because `fit-buffer-to-window' has a different
call signature in different Emacs versions"
(let ((fit-window-to-buffer-horizontally t)
(window-min-height 1))
(apply #'fit-window-to-buffer window params)))