Cache current header and mode line height for each window.
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 5 Sep 2013 16:25:20 +0000 (20:25 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 5 Sep 2013 16:25:20 +0000 (20:25 +0400)
commitb969582835bb7d6085a802322c77150fe559960e
treebe9ab059004c356ec2ba8e3dbe0bf489fcb5dd74
parent1f896cb7ede7d658797737574b2d6b00d128a592
Cache current header and mode line height for each window.
* window.h (struct window): New fields mode_line_height
and header_line_height.
* window.c (make_window): Initialize them.
* dispextern.h (CURRENT_MODE_LINE_HEIGHT)
(CURRENT_HEADER_LINE_HEIGHT): Use them.  Adjust comment.
(current_mode_line_height, current_header_line_height):
Remove declaration.
* xdisp.c (current_mode_line_height, current_header_line_height):
Remove.
(pos_visible_p, init_xdisp): Adjust user.
(redisplay_window): Invalidate mode_line_height and
header_line_height if current and desired matrices do not agree.
src/ChangeLog
src/dispextern.h
src/window.c
src/window.h
src/xdisp.c