Variable: temp-buffer-max-width
temp-buffer-max-width 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-width frame-char-width 2
frame-width]
5 ("help.elc" . 51168)]
Documentation
Maximum width of a window displaying a temporary buffer.
This is effective only when Temp Buffer Resize mode is enabled.
The value is the maximum width (in columns) 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 width 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.4.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/help.el.gz
(defcustom temp-buffer-max-width
(lambda (_buffer)
(if (and (display-graphic-p) (eq (selected-window) (frame-root-window)))
(/ (x-display-pixel-width) (frame-char-width) 2)
(/ (- (frame-width) 2) 2)))
"Maximum width of a window displaying a temporary buffer.
This is effective only when Temp Buffer Resize mode is enabled.
The value is the maximum width (in columns) 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 width 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.4")