]> git.eshelyaron.com Git - emacs.git/commit
Make 'fit-frame-to-buffer' work around size hints (Bug#74866)
authorMartin Rudalics <rudalics@gmx.at>
Mon, 23 Dec 2024 09:59:11 +0000 (10:59 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:20:35 +0000 (16:20 +0100)
commit7c8f75721b42cc1b47f2599cfbdc6577bd790ac1
tree18d43a576c635ebf11bb8111e957e7e3afb624ac
parentc1a141f02eb431477664f41c21139312ff486505
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.

(cherry picked from commit 6017c6a986fd958732facb1bb6ea2c040981b023)
doc/lispref/windows.texi
lisp/window.el