]> git.eshelyaron.com Git - emacs.git/commit
Fixes for fitting windows and frames to their buffers (Bug#37563)
authorMartin Rudalics <rudalics@gmx.at>
Fri, 11 Oct 2019 06:46:52 +0000 (08:46 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 11 Oct 2019 06:46:52 +0000 (08:46 +0200)
commite3f97d73653df725322d7f2392d36f858cce5a73
treea87da8ba408b52a7efccad07359412fd4e7cbe7a
parentfcfe6e279774b2e5100b0a660aaa3f3f75ed0a7a
Fixes for fitting windows and frames to their buffers (Bug#37563)

* lisp/window.el (window-default-font-height)
(window-default-line-height): New functions.
(fit-frame-to-buffer): Interpret values of MAX-HEIGHT and
MIN-HEIGHT arguments in terms of WINDOW's default line height
(Bug#37563).
(fit-window-to-buffer): Obey size restricting arguments even
when size of WINDOW's text does not change.  Do not
temporarily select WINDOW and perform height/width related
calculations if and only if WINDOW is accordingly combined.
Interpret values of MAX-HEIGHT and MIN-HEIGHT arguments in
terms of WINDOW's default line height.
lisp/window.el