Variable: temp-buffer-max-height

temp-buffer-max-height is a customizable variable defined in help.el.gz.

Value

#[257 "\300 \203�\301 \302 =\203�\303\304 \305 \306#\207\307 \306Z\306\245\207"
      [display-graphic-p selected-window frame-root-window / x-display-pixel-height frame-char-height 2 frame-height]
      5 "\n\n(fn BUFFER)"]

Documentation

Maximum height of a window displaying a temporary buffer.

This is effective only when Temp Buffer Resize mode is enabled. The value is the maximum height (in lines) which resize-temp-buffer-window will give to a window displaying a temporary buffer. It can also be a function to be called to choose the height for such a buffer. It gets one argument, the buffer, and should return a positive integer. At the time the function is called, the window to be resized is selected.

This variable was added, or its default value changed, in Emacs 24.3.

Source Code

;; Defined in /usr/src/emacs/lisp/help.el.gz
;;; Automatic resizing of temporary buffers.
(defcustom temp-buffer-max-height
  (lambda (_buffer)
    (if (and (display-graphic-p) (eq (selected-window) (frame-root-window)))
	(/ (x-display-pixel-height) (frame-char-height) 2)
      (/ (- (frame-height) 2) 2)))
  "Maximum height of a window displaying a temporary buffer.
This is effective only when Temp Buffer Resize mode is enabled.
The value is the maximum height (in lines) which
`resize-temp-buffer-window' will give to a window displaying a
temporary buffer.  It can also be a function to be called to
choose the height for such a buffer.  It gets one argument, the
buffer, and should return a positive integer.  At the time the
function is called, the window to be resized is selected."
  :type '(choice integer function)
  :group 'help
  :version "24.3")