aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Rudalics2024-12-23 10:59:11 +0100
committerMartin Rudalics2024-12-23 10:59:11 +0100
commit6017c6a986fd958732facb1bb6ea2c040981b023 (patch)
treee74d3b79d947f0ff5416392d5566664ee9a12a6b /doc
parent39380e1bd3bfc26e355445590e243fcfa940fc9f (diff)
downloademacs-6017c6a986fd958732facb1bb6ea2c040981b023.tar.gz
emacs-6017c6a986fd958732facb1bb6ea2c040981b023.zip
Make 'fit-frame-to-buffer' work around size hints (Bug#74866)
* lisp/window.el (fit-frame-to-buffer-1): When 'frame-resize-pixelwise' is nil, round up requested sizes to avoid that lines get wrapped (Bug#74866). * doc/lispref/windows.texi (Resizing Windows): Mention that with size hints one may have to set 'frame-resize-pixelwise' to make 'fit-frame-to-buffer' fit the buffer exactly.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/windows.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index adc294e4c99..3ff78b599de 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -1166,7 +1166,9 @@ frame to its buffer using the command @code{fit-frame-to-buffer}.
1166This command adjusts the size of @var{frame} to display the contents of 1166This command adjusts the size of @var{frame} to display the contents of
1167its buffer exactly. @var{frame} can be any live frame and defaults to 1167its buffer exactly. @var{frame} can be any live frame and defaults to
1168the selected one. Fitting is done only if @var{frame}'s root window is 1168the selected one. Fitting is done only if @var{frame}'s root window is
1169live. 1169a live window. On window systems that use size hints, exact fitting can
1170be often achieved if and only if @code{frame-resize-pixelwise}
1171(@pxref{Frame Size}) is non-@code{nil}.
1170 1172
1171The arguments @var{max-height}, @var{min-height}, @var{max-width} and 1173The arguments @var{max-height}, @var{min-height}, @var{max-width} and
1172@var{min-width}, if non-@code{nil}, specify bounds on the new body size 1174@var{min-width}, if non-@code{nil}, specify bounds on the new body size