diff options
| author | Richard M. Stallman | 2005-01-01 01:36:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-01-01 01:36:48 +0000 |
| commit | b437860aadfd97807b3fcdee9c1e8808c03ba312 (patch) | |
| tree | b857d950a01e1020fb208a9523d2e96d4ee6eb22 /src | |
| parent | f323e507d04d854d6626e1971d740a22600f4c67 (diff) | |
| download | emacs-b437860aadfd97807b3fcdee9c1e8808c03ba312.tar.gz emacs-b437860aadfd97807b3fcdee9c1e8808c03ba312.zip | |
(struct it): New element ellipsis_p.
(struct glyph_row): New element ends_in_ellipsis_p.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/dispextern.h | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 494f45f9af8..6e725eef287 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -4,6 +4,19 @@ | |||
| 4 | 4 | ||
| 5 | 2004-12-31 Richard M. Stallman <rms@gnu.org> | 5 | 2004-12-31 Richard M. Stallman <rms@gnu.org> |
| 6 | 6 | ||
| 7 | * xdisp.c (setup_for_ellipsis, get_next_display_element): | ||
| 8 | Set it->ellipsis_p to 1 or 0. | ||
| 9 | (display_line): Record whether row ends in mid-ellipsis. | ||
| 10 | (set_cursor_from_row): If ends in ellipsis. find start of it. | ||
| 11 | (cursor_row_p): If PT's at the end of the ellipsis the row | ||
| 12 | ends within, don't display cursor on this row. | ||
| 13 | |||
| 14 | * dispextern.h (struct it): New element ellipsis_p. | ||
| 15 | (struct glyph_row): New element ends_in_ellipsis_p. | ||
| 16 | |||
| 17 | * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified | ||
| 18 | position if we're reading from something other than the buffer. | ||
| 19 | |||
| 7 | * window.c (window_scroll_pixel_based): Only look at | 20 | * window.c (window_scroll_pixel_based): Only look at |
| 8 | Vscroll_preserve_screen_position if the old PT can't be kept. | 21 | Vscroll_preserve_screen_position if the old PT can't be kept. |
| 9 | (syms_of_window) <scroll-preserve-screen-position>: Doc fix. | 22 | (syms_of_window) <scroll-preserve-screen-position>: Doc fix. |
diff --git a/src/dispextern.h b/src/dispextern.h index c9d85065e78..a6f12a04b45 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -817,6 +817,9 @@ struct glyph_row | |||
| 817 | /* 1 means this row currently shows the cursor in the right fringe. */ | 817 | /* 1 means this row currently shows the cursor in the right fringe. */ |
| 818 | unsigned cursor_in_fringe_p : 1; | 818 | unsigned cursor_in_fringe_p : 1; |
| 819 | 819 | ||
| 820 | /* 1 means the last glyph in the row is part of an ellipsis. */ | ||
| 821 | unsigned ends_in_ellipsis_p : 1; | ||
| 822 | |||
| 820 | /* Non-zero means display a bitmap on X frames indicating that this | 823 | /* Non-zero means display a bitmap on X frames indicating that this |
| 821 | the first line of the buffer. */ | 824 | the first line of the buffer. */ |
| 822 | unsigned indicate_bob_p : 1; | 825 | unsigned indicate_bob_p : 1; |
| @@ -1825,6 +1828,10 @@ struct it | |||
| 1825 | Don't handle some `display' properties in these strings. */ | 1828 | Don't handle some `display' properties in these strings. */ |
| 1826 | unsigned string_from_display_prop_p : 1; | 1829 | unsigned string_from_display_prop_p : 1; |
| 1827 | 1830 | ||
| 1831 | /* When METHOD == next_element_from_display_vector, | ||
| 1832 | this is 1 if we're doing an ellipsis. Otherwise meaningless. */ | ||
| 1833 | unsigned ellipsis_p : 1; | ||
| 1834 | |||
| 1828 | /* Display table in effect or null for none. */ | 1835 | /* Display table in effect or null for none. */ |
| 1829 | struct Lisp_Char_Table *dp; | 1836 | struct Lisp_Char_Table *dp; |
| 1830 | 1837 | ||