Fix handling of window-min-height/-width (Bug#16738).
authorMartin Rudalics <rudalics@gmx.at>
Fri, 21 Feb 2014 08:02:05 +0000 (09:02 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 21 Feb 2014 08:02:05 +0000 (09:02 +0100)
commit8dd3e94fb6b780ac2bf5d07795df376a296ef5b5
treeaf14870e616ff0a4c8f3fc6dec5d32069bfcb70e
parentafe1e4c8eb4b4ef62569bd272507ecd5ffd51a2f
Fix handling of window-min-height/-width (Bug#16738).

* window.el (window--dump-window, window--dump-frame): New
functions.
(window--min-size-1): Account for window dividers.  When
window-resize-pixelwise is nil, delay rounding till after the
sum of the window components has been calculated.
(window--min-delta-1, window--max-delta-1): When PIXELWISE is
nil make sure at least one text line and two text columns remain
fully visible.
(window-resize): Signal an error when window-resize-apply fails.
(window--resize-child-windows): Fix calculation of by how many
pixels a window can still be shrunk via window-new-normal.
(adjust-window-trailing-edge): Call window--resizable with
correct TRAIL argument.
lisp/ChangeLog
lisp/window.el
src/ChangeLog
src/window.c