diff options
| author | Dmitry Antipov | 2013-09-05 20:25:20 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-09-05 20:25:20 +0400 |
| commit | b969582835bb7d6085a802322c77150fe559960e (patch) | |
| tree | be9ab059004c356ec2ba8e3dbe0bf489fcb5dd74 /src/window.c | |
| parent | 1f896cb7ede7d658797737574b2d6b00d128a592 (diff) | |
| download | emacs-b969582835bb7d6085a802322c77150fe559960e.tar.gz emacs-b969582835bb7d6085a802322c77150fe559960e.zip | |
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.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index d8a6976e090..253e6233fc1 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3419,6 +3419,7 @@ make_window (void) | |||
| 3419 | non-Lisp data, so do it only for slots which should not be zero. */ | 3419 | non-Lisp data, so do it only for slots which should not be zero. */ |
| 3420 | w->nrows_scale_factor = w->ncols_scale_factor = 1; | 3420 | w->nrows_scale_factor = w->ncols_scale_factor = 1; |
| 3421 | w->left_fringe_width = w->right_fringe_width = -1; | 3421 | w->left_fringe_width = w->right_fringe_width = -1; |
| 3422 | w->mode_line_height = w->header_line_height = -1; | ||
| 3422 | w->phys_cursor_type = -1; | 3423 | w->phys_cursor_type = -1; |
| 3423 | w->phys_cursor_width = -1; | 3424 | w->phys_cursor_width = -1; |
| 3424 | w->scroll_bar_width = -1; | 3425 | w->scroll_bar_width = -1; |