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.
This commit is contained in:
parent
29f5e020a2
commit
6cb4da45dc
5 changed files with 157 additions and 90 deletions
|
@ -975,9 +975,8 @@ is buffer-local."
|
|||
(display-graphic-p)
|
||||
overflow-newline-into-fringe
|
||||
(/= (frame-parameter nil 'right-fringe) 0))
|
||||
;; Call window-text-width instead of window-width (Bug#16470).
|
||||
(window-text-width)
|
||||
(1- (window-text-width))))
|
||||
(window-body-width)
|
||||
(1- (window-body-width))))
|
||||
|
||||
|
||||
(put 'term-mode 'mode-class 'special)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue