diff options
| author | Martin Rudalics | 2024-12-23 10:59:11 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2024-12-23 10:59:11 +0100 |
| commit | 6017c6a986fd958732facb1bb6ea2c040981b023 (patch) | |
| tree | e74d3b79d947f0ff5416392d5566664ee9a12a6b /doc | |
| parent | 39380e1bd3bfc26e355445590e243fcfa940fc9f (diff) | |
| download | emacs-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.texi | 4 |
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}. | |||
| 1166 | This command adjusts the size of @var{frame} to display the contents of | 1166 | This command adjusts the size of @var{frame} to display the contents of |
| 1167 | its buffer exactly. @var{frame} can be any live frame and defaults to | 1167 | its buffer exactly. @var{frame} can be any live frame and defaults to |
| 1168 | the selected one. Fitting is done only if @var{frame}'s root window is | 1168 | the selected one. Fitting is done only if @var{frame}'s root window is |
| 1169 | live. | 1169 | a live window. On window systems that use size hints, exact fitting can |
| 1170 | be often achieved if and only if @code{frame-resize-pixelwise} | ||
| 1171 | (@pxref{Frame Size}) is non-@code{nil}. | ||
| 1170 | 1172 | ||
| 1171 | The arguments @var{max-height}, @var{min-height}, @var{max-width} and | 1173 | The 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 |