Function: ibuffer-shrink-to-fit

ibuffer-shrink-to-fit is a byte-compiled function defined in ibuffer.el.gz.

Signature

(ibuffer-shrink-to-fit &optional OWIN)

Source Code

;; Defined in /usr/src/emacs/lisp/ibuffer.el.gz
(defun ibuffer-shrink-to-fit (&optional owin)
  ;; Make sure that redisplay is performed, otherwise there can be a
  ;; bad interaction with code in the window-scroll-functions hook
  (redisplay t)
  (when (with-current-buffer (window-buffer)
          (eq major-mode 'ibuffer-mode))
    (fit-window-to-buffer
     nil (and owin
              (/ (frame-height)
                 (length (window-list (selected-frame))))))))