]> git.eshelyaron.com Git - emacs.git/commit
Fix 'fit-frame-to-buffer' (Bug#56102)
authorMartin Rudalics <rudalics@gmx.at>
Wed, 6 Jul 2022 07:25:43 +0000 (09:25 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 6 Jul 2022 07:25:43 +0000 (09:25 +0200)
commit939dc2ff126dbca1f1c31989f2c11a4fdc35648c
tree178f65eeb3a65135121689a1e95e3a403ec3c90d
parent15404818503e0d3df7a8c56af13e4123bd231989
Fix 'fit-frame-to-buffer' (Bug#56102)

* lisp/window.el (fit-frame-to-buffer-sizes): Fix doc-string.
Give calls to 'max' a second argument so they do something
useful.  If ONLY equals 'vertically', call
'window-text-pixel-size' with X-LIMIT nil (Bug#56102).  For
minimum sizes of the window to fit, use 'window-safe-min-size' by
default.
* doc/lispref/windows.texi (Resizing Windows): Fix descriptions of
'fit-frame-to-buffer' and 'fit-frame-to-buffer-sizes'.
doc/lispref/windows.texi
lisp/window.el