diff options
| author | Dmitry Antipov | 2013-08-14 09:41:48 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-14 09:41:48 +0400 |
| commit | 02455cb66aa80f361bafada7b1286f2dd79739d1 (patch) | |
| tree | 93a894a36309f4c1385c0ec28a26c2ce3c611ee4 /src/window.h | |
| parent | da5707e8ec8df0a8a9bb1a1f12c6b701314845cc (diff) | |
| download | emacs-02455cb66aa80f361bafada7b1286f2dd79739d1.tar.gz emacs-02455cb66aa80f361bafada7b1286f2dd79739d1.zip | |
* window.h (struct window): Convert window_end_pos and
window_end_vpos from Lisp_Object to ptrdiff_t and int, respectively.
(wset_window_end_pos, wset_window_end_vpos): Remove.
* dispnew.c (adjust_glyph_matrix):
* window.c (Fwindow_end, replace_window, set_window_buffer)
(make_window):
* xdisp.c (check_window_end, move_it_to, redisplay_internal)
(set_vertical_scroll_bar, redisplay_window, try_window)
(try_window_reusing_current_matrix, find_first_unchanged_at_end_row)
(try_window_id, decode_mode_spec, mouse_face_from_buffer_pos)
(note_mouse_highlight): Adjust users.
(try_cursor_movement): Likewise. Convert old precondition to eassert.
Add comment.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/src/window.h b/src/window.h index 823fe678c43..585697f0805 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -145,14 +145,6 @@ struct window | |||
| 145 | no scroll bar. A value of t means use frame value. */ | 145 | no scroll bar. A value of t means use frame value. */ |
| 146 | Lisp_Object vertical_scroll_bar_type; | 146 | Lisp_Object vertical_scroll_bar_type; |
| 147 | 147 | ||
| 148 | /* Z - the buffer position of the last glyph in the current | ||
| 149 | matrix of W. Only valid if window_end_valid is nonzero. */ | ||
| 150 | Lisp_Object window_end_pos; | ||
| 151 | |||
| 152 | /* Glyph matrix row of the last glyph in the current matrix | ||
| 153 | of W. Only valid if window_end_valid is nonzero. */ | ||
| 154 | Lisp_Object window_end_vpos; | ||
| 155 | |||
| 156 | /* Display-table to use for displaying chars in this window. | 148 | /* Display-table to use for displaying chars in this window. |
| 157 | Nil means use the buffer's own display-table. */ | 149 | Nil means use the buffer's own display-table. */ |
| 158 | Lisp_Object display_table; | 150 | Lisp_Object display_table; |
| @@ -269,6 +261,14 @@ struct window | |||
| 269 | A value of -1 means use frame values. */ | 261 | A value of -1 means use frame values. */ |
| 270 | int scroll_bar_width; | 262 | int scroll_bar_width; |
| 271 | 263 | ||
| 264 | /* Z - the buffer position of the last glyph in the current | ||
| 265 | matrix of W. Only valid if window_end_valid is nonzero. */ | ||
| 266 | ptrdiff_t window_end_pos; | ||
| 267 | |||
| 268 | /* Glyph matrix row of the last glyph in the current matrix | ||
| 269 | of W. Only valid if window_end_valid is nonzero. */ | ||
| 270 | int window_end_vpos; | ||
| 271 | |||
| 272 | /* Non-zero if this window is a minibuffer window. */ | 272 | /* Non-zero if this window is a minibuffer window. */ |
| 273 | unsigned mini : 1; | 273 | unsigned mini : 1; |
| 274 | 274 | ||
| @@ -366,16 +366,6 @@ wset_vertical_scroll_bar (struct window *w, Lisp_Object val) | |||
| 366 | w->vertical_scroll_bar = val; | 366 | w->vertical_scroll_bar = val; |
| 367 | } | 367 | } |
| 368 | WINDOW_INLINE void | 368 | WINDOW_INLINE void |
| 369 | wset_window_end_pos (struct window *w, Lisp_Object val) | ||
| 370 | { | ||
| 371 | w->window_end_pos = val; | ||
| 372 | } | ||
| 373 | WINDOW_INLINE void | ||
| 374 | wset_window_end_vpos (struct window *w, Lisp_Object val) | ||
| 375 | { | ||
| 376 | w->window_end_vpos = val; | ||
| 377 | } | ||
| 378 | WINDOW_INLINE void | ||
| 379 | wset_prev_buffers (struct window *w, Lisp_Object val) | 369 | wset_prev_buffers (struct window *w, Lisp_Object val) |
| 380 | { | 370 | { |
| 381 | w->prev_buffers = val; | 371 | w->prev_buffers = val; |