diff options
| author | Dmitry Antipov | 2013-02-01 11:23:18 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-02-01 11:23:18 +0400 |
| commit | 422ff52b80abd9233225b22ccdc5263631cbe482 (patch) | |
| tree | 4baeece0a77f8281603ae6ce4f5e7624caab0711 /src/window.h | |
| parent | 8654f9d7d6d7c3ee97232a34a40250dcbc57af8e (diff) | |
| download | emacs-422ff52b80abd9233225b22ccdc5263631cbe482.tar.gz emacs-422ff52b80abd9233225b22ccdc5263631cbe482.zip | |
* window.h (struct window): Convert base_line_number, base_line_pos
and column_number_displayed members from Lisp_Object to ptrdiff_t.
Convert region_showing member from Lisp_Object to bitfield.
Remove sequence_number member. Adjust comments.
* window.c (sequence_number): Remove.
(make_window): Initialize column_number_displayed.
* print.c (print_object): Follow the printed representation of
frames and print window pointer to distinguish between windows.
(adjust_window_count): Invalidate base_line_pos. Adjust comment.
* xdisp.c (wset_base_line_number, wset_base_line_pos)
(wset_column_number_displayed, wset_region_showing): Remove.
(window_buffer_changed, mode_line_update_needed, redisplay_internal)
(try_scrolling, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id, display_line)
(display_mode_lines, decode_mode_spec): Adjust users.
* .gdbinit (pwinx): Do not print sequence_number.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/src/window.h b/src/window.h index 135f591ded7..f28ce1424d0 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -192,23 +192,6 @@ struct window | |||
| 192 | and Qt, so bitfield can't be used here. */ | 192 | and Qt, so bitfield can't be used here. */ |
| 193 | Lisp_Object dedicated; | 193 | Lisp_Object dedicated; |
| 194 | 194 | ||
| 195 | /* Line number and position of a line somewhere above the top of the | ||
| 196 | screen. If this field is nil, it means we don't have a base | ||
| 197 | line. */ | ||
| 198 | Lisp_Object base_line_number; | ||
| 199 | /* If this field is nil, it means we don't have a base line. | ||
| 200 | If it is a buffer, it means don't display the line number | ||
| 201 | as long as the window shows that buffer. */ | ||
| 202 | Lisp_Object base_line_pos; | ||
| 203 | |||
| 204 | /* If we have highlighted the region (or any part of it), | ||
| 205 | this is the mark position that we used, as an integer. */ | ||
| 206 | Lisp_Object region_showing; | ||
| 207 | |||
| 208 | /* The column number currently displayed in this window's mode line, | ||
| 209 | or nil if column numbers are not being displayed. */ | ||
| 210 | Lisp_Object column_number_displayed; | ||
| 211 | |||
| 212 | /* If redisplay in this window goes beyond this buffer position, | 195 | /* If redisplay in this window goes beyond this buffer position, |
| 213 | must run the redisplay-end-trigger-hook. */ | 196 | must run the redisplay-end-trigger-hook. */ |
| 214 | Lisp_Object redisplay_end_trigger; | 197 | Lisp_Object redisplay_end_trigger; |
| @@ -238,9 +221,6 @@ struct window | |||
| 238 | /* Number saying how recently window was selected. */ | 221 | /* Number saying how recently window was selected. */ |
| 239 | int use_time; | 222 | int use_time; |
| 240 | 223 | ||
| 241 | /* Unique number of window assigned when it was created. */ | ||
| 242 | int sequence_number; | ||
| 243 | |||
| 244 | /* Number of columns display within the window is scrolled to the left. */ | 224 | /* Number of columns display within the window is scrolled to the left. */ |
| 245 | ptrdiff_t hscroll; | 225 | ptrdiff_t hscroll; |
| 246 | 226 | ||
| @@ -260,6 +240,19 @@ struct window | |||
| 260 | it should be positive. */ | 240 | it should be positive. */ |
| 261 | ptrdiff_t last_point; | 241 | ptrdiff_t last_point; |
| 262 | 242 | ||
| 243 | /* Line number and position of a line somewhere above the top of the | ||
| 244 | screen. If this field is zero, it means we don't have a base line. */ | ||
| 245 | ptrdiff_t base_line_number; | ||
| 246 | |||
| 247 | /* If this field is zero, it means we don't have a base line. | ||
| 248 | If it is -1, it means don't display the line number as long | ||
| 249 | as the window shows its buffer. */ | ||
| 250 | ptrdiff_t base_line_pos; | ||
| 251 | |||
| 252 | /* The column number currently displayed in this window's mode | ||
| 253 | line, or -1 if column numbers are not being displayed. */ | ||
| 254 | ptrdiff_t column_number_displayed; | ||
| 255 | |||
| 263 | /* Scaling factor for the glyph_matrix size calculation in this window. | 256 | /* Scaling factor for the glyph_matrix size calculation in this window. |
| 264 | Used if window contains many small images or uses proportional fonts, | 257 | Used if window contains many small images or uses proportional fonts, |
| 265 | as the normal may yield a matrix which is too small. */ | 258 | as the normal may yield a matrix which is too small. */ |
| @@ -340,6 +333,9 @@ struct window | |||
| 340 | the frame image that window_end_pos did not get onto the frame. */ | 333 | the frame image that window_end_pos did not get onto the frame. */ |
| 341 | unsigned window_end_valid : 1; | 334 | unsigned window_end_valid : 1; |
| 342 | 335 | ||
| 336 | /* Nonzero if we have highlighted the region (or any part of it). */ | ||
| 337 | unsigned region_showing : 1; | ||
| 338 | |||
| 343 | /* Amount by which lines of this window are scrolled in | 339 | /* Amount by which lines of this window are scrolled in |
| 344 | y-direction (smooth scrolling). */ | 340 | y-direction (smooth scrolling). */ |
| 345 | int vscroll; | 341 | int vscroll; |