diff options
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/window.h b/src/window.h index 1ebd35a7c64..135f591ded7 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -175,17 +175,13 @@ struct window | |||
| 175 | no scroll bar. A value of t means use frame value. */ | 175 | no scroll bar. A value of t means use frame value. */ |
| 176 | Lisp_Object vertical_scroll_bar_type; | 176 | Lisp_Object vertical_scroll_bar_type; |
| 177 | 177 | ||
| 178 | /* Z - the buffer position of the last glyph in the current matrix | 178 | /* Z - the buffer position of the last glyph in the current |
| 179 | of W. Only valid if WINDOW_END_VALID is not nil. */ | 179 | matrix of W. Only valid if window_end_valid is nonzero. */ |
| 180 | Lisp_Object window_end_pos; | 180 | Lisp_Object window_end_pos; |
| 181 | |||
| 181 | /* Glyph matrix row of the last glyph in the current matrix | 182 | /* Glyph matrix row of the last glyph in the current matrix |
| 182 | of W. Only valid if WINDOW_END_VALID is not nil. */ | 183 | of W. Only valid if window_end_valid is nonzero. */ |
| 183 | Lisp_Object window_end_vpos; | 184 | Lisp_Object window_end_vpos; |
| 184 | /* t if window_end_pos is truly valid. | ||
| 185 | This is nil if nontrivial redisplay is preempted | ||
| 186 | since in that case the frame image that window_end_pos | ||
| 187 | did not get onto the frame. */ | ||
| 188 | Lisp_Object window_end_valid; | ||
| 189 | 185 | ||
| 190 | /* Display-table to use for displaying chars in this window. | 186 | /* Display-table to use for displaying chars in this window. |
| 191 | Nil means use the buffer's own display-table. */ | 187 | Nil means use the buffer's own display-table. */ |
| @@ -339,12 +335,17 @@ struct window | |||
| 339 | Otherwise draw them between margin areas and text. */ | 335 | Otherwise draw them between margin areas and text. */ |
| 340 | unsigned fringes_outside_margins : 1; | 336 | unsigned fringes_outside_margins : 1; |
| 341 | 337 | ||
| 338 | /* Nonzero if window_end_pos and window_end_vpos are truly valid. | ||
| 339 | This is zero if nontrivial redisplay is preempted since in that case | ||
| 340 | the frame image that window_end_pos did not get onto the frame. */ | ||
| 341 | unsigned window_end_valid : 1; | ||
| 342 | |||
| 342 | /* Amount by which lines of this window are scrolled in | 343 | /* Amount by which lines of this window are scrolled in |
| 343 | y-direction (smooth scrolling). */ | 344 | y-direction (smooth scrolling). */ |
| 344 | int vscroll; | 345 | int vscroll; |
| 345 | 346 | ||
| 346 | /* Z_BYTE - Buffer position of the last glyph in the current matrix of W. | 347 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. |
| 347 | Should be nonnegative, and only valid if window_end_valid is not nil. */ | 348 | Should be nonnegative, and only valid if window_end_valid is nonzero. */ |
| 348 | ptrdiff_t window_end_bytepos; | 349 | ptrdiff_t window_end_bytepos; |
| 349 | }; | 350 | }; |
| 350 | 351 | ||
| @@ -401,11 +402,6 @@ wset_window_end_pos (struct window *w, Lisp_Object val) | |||
| 401 | w->window_end_pos = val; | 402 | w->window_end_pos = val; |
| 402 | } | 403 | } |
| 403 | WINDOW_INLINE void | 404 | WINDOW_INLINE void |
| 404 | wset_window_end_valid (struct window *w, Lisp_Object val) | ||
| 405 | { | ||
| 406 | w->window_end_valid = val; | ||
| 407 | } | ||
| 408 | WINDOW_INLINE void | ||
| 409 | wset_window_end_vpos (struct window *w, Lisp_Object val) | 405 | wset_window_end_vpos (struct window *w, Lisp_Object val) |
| 410 | { | 406 | { |
| 411 | w->window_end_vpos = val; | 407 | w->window_end_vpos = val; |