Function: fit-mini-frame-to-buffer

fit-mini-frame-to-buffer is a byte-compiled function defined in window.el.gz.

Signature

(fit-mini-frame-to-buffer &optional FRAME)

Documentation

Adjust size of minibuffer FRAME to display its contents.

FRAME should be a minibuffer-only frame and defaults to the selected one. Unlike fit-frame-to-buffer(var)/fit-frame-to-buffer(fun) FRAME will fit to the contents of its buffer with any leading or trailing empty lines included.

Probably introduced at or before Emacs version 27.2.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun fit-mini-frame-to-buffer (&optional frame)
  "Adjust size of minibuffer FRAME to display its contents.
FRAME should be a minibuffer-only frame and defaults to the
selected one.  Unlike `fit-frame-to-buffer' FRAME will fit to the
contents of its buffer with any leading or trailing empty lines
included."
  (fit-frame-to-buffer-1 frame))