Next: Momentary Display, Previous: Macros for Display of Non-help Buffers, Up: Temporary Displays [Index]
A window showing a temporary buffer can be fitted to the size of that buffer using the following mode:
When this minor mode is enabled, windows showing a temporary buffer are automatically resized to fit their buffer’s contents.
A window is resized if and only if it has been specially created for the buffer.
By default, this mode uses fit-window-to-buffer
(see Resizing Windows) for
resizing. You can specify a different function by customizing the options
temp-buffer-max-height
and
temp-buffer-max-width
.
This option specifies the maximum height (in lines) of a window displaying a
temporary buffer when temp-buffer-resize-mode
is enabled.
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.
This option specifies the maximum width of a window (in columns) displaying a temporary buffer when temp-buffer-resize-mode is enabled.
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.