From 498eafb4f10f915e186169a4553e43ddbe654cb4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 13 Jun 2026 12:42:41 +0300 Subject: [PATCH] ; * lisp/help.el (temp-buffer-resize-mode): Doc fix (bug#81207). --- lisp/help.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lisp/help.el b/lisp/help.el index b5eba8707db..5e628083def 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -1998,16 +1998,20 @@ function is called, the window to be resized is selected." (define-minor-mode temp-buffer-resize-mode "Toggle auto-resizing temporary buffer windows (Temp Buffer Resize Mode). -When Temp Buffer Resize mode is enabled, the windows in which we -show a temporary buffer are automatically resized in height to +When Temp Buffer Resize mode is enabled, the windows in which Emacs +shows a temporary buffer are automatically resized in height to fit the buffer's contents, but never more than `temp-buffer-max-height' nor less than `window-min-height'. -A window is resized only if it has been specially created for its -buffer. A frame is resized only if `fit-frame-to-buffer' is non-nil. +When this mode is enabled, a window is resized only if it has been +specially created for a temporary buffer. Windows that have shown +another buffer before being reused for displaying a temporary buffer +are not resized (but note that if `even-window-sizes' is non-nil, they +might beresized in some situations anyway). A frame is resized only +if `fit-frame-to-buffer' is non-nil. This mode is used by `help', `apropos' and `completion' buffers, -and some others." +and some others, when they display their pop-up buffers." :global t :group 'help (if temp-buffer-resize-mode ;; `help-make-xrefs' may add a `back' button and thus increase the