Fixes in window size functions around Bug#16430 and Bug#16470.
authorMartin Rudalics <rudalics@gmx.at>
Wed, 22 Jan 2014 10:29:23 +0000 (11:29 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 22 Jan 2014 10:29:23 +0000 (11:29 +0100)
commit6cb4da45dc3d0660a65b29e192e82a37e3ad505c
tree310338ec8e359c9b3923e45b3437996c185a901b
parent29f5e020a29c27e2b198069d0fe5ddc30b0a618f
Fixes in window size functions around Bug#16430 and Bug#16470.

* window.c (Fwindow_pixel_width, Fwindow_pixel_height)
(Fwindow_mode_line_height, Fwindow_header_line_height)
(Fwindow_right_divider_width, Fwindow_bottom_divider_width):
Minor doc-string adjustments.
(Fwindow_total_height, Fwindow_total_width): New argument ROUND.
Rewrite doc-strings.
(window_body_height, window_body_width): Do not count partially
visible lines/columns when PIXELWISE is nil (Bug#16470).
(Qfloor, Qceiling): New symbols.
* window.el (window-total-size, window-size): New argument
ROUND.
(window--min-delta-1, window-min-delta, window--max-delta-1): Be
more conservative when calculating the numbers of lines or
columns a window can shrink (Bug#16430).
(fit-window-to-buffer): Simplify code.
* term.el (term-window-width): Call window-body-width again.
lisp/ChangeLog
lisp/term.el
lisp/window.el
src/ChangeLog
src/window.c