diff options
| author | Gerd Moellmann | 2000-10-16 21:05:03 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-10-16 21:05:03 +0000 |
| commit | 483de32b26e18356955f9453a1d992b12fda271d (patch) | |
| tree | 6085cf505abd3b60bc188f8033921ecd565b0936 /src | |
| parent | 7ccd82bda0517d8ca08f5d84e0b19aae56427fd0 (diff) | |
| download | emacs-483de32b26e18356955f9453a1d992b12fda271d.tar.gz emacs-483de32b26e18356955f9453a1d992b12fda271d.zip | |
(set_iterator_to_next): Reset box start and flags of the
iterator at the beginning, so that they can be set later on, for
instance in reseat_at_next_visible_line_start without being
overwritten.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xdisp.c | 9 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0c85ed03323..a12519a96c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,8 +1,13 @@ | |||
| 1 | 2000-10-16 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-10-16 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (set_iterator_to_next): Reset box start and end flags of | ||
| 4 | the iterator at the beginning, so that they can be set later on, | ||
| 5 | for instance in reseat_at_next_visible_line_start, without being | ||
| 6 | overwritten. | ||
| 7 | |||
| 3 | * xfns.c (pbm_format): Add :foreground and :background keywords. | 8 | * xfns.c (pbm_format): Add :foreground and :background keywords. |
| 4 | (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators. | 9 | (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators. |
| 5 | (xbm_load): Recoghnize foreground and background color | 10 | (xbm_load): Recognize foreground and background color |
| 6 | specifications. | 11 | specifications. |
| 7 | 12 | ||
| 8 | 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il> | 13 | 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il> |
diff --git a/src/xdisp.c b/src/xdisp.c index bc69ef3d9f7..9b6d3806444 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -3789,6 +3789,11 @@ set_iterator_to_next (it, reseat_p) | |||
| 3789 | struct it *it; | 3789 | struct it *it; |
| 3790 | int reseat_p; | 3790 | int reseat_p; |
| 3791 | { | 3791 | { |
| 3792 | /* Reset flags indicating start and end of a sequence of characters | ||
| 3793 | with box. Reset them at the start of this function because | ||
| 3794 | moving the iterator to a new position might set them. */ | ||
| 3795 | it->start_of_box_run_p = it->end_of_box_run_p = 0; | ||
| 3796 | |||
| 3792 | if (it->method == next_element_from_buffer) | 3797 | if (it->method == next_element_from_buffer) |
| 3793 | { | 3798 | { |
| 3794 | /* The current display element of IT is a character from | 3799 | /* The current display element of IT is a character from |
| @@ -3912,10 +3917,6 @@ set_iterator_to_next (it, reseat_p) | |||
| 3912 | /* There are no other methods defined, so this should be a bug. */ | 3917 | /* There are no other methods defined, so this should be a bug. */ |
| 3913 | abort (); | 3918 | abort (); |
| 3914 | 3919 | ||
| 3915 | /* Reset flags indicating start and end of a sequence of | ||
| 3916 | characters with box. */ | ||
| 3917 | it->start_of_box_run_p = it->end_of_box_run_p = 0; | ||
| 3918 | |||
| 3919 | xassert (it->method != next_element_from_string | 3920 | xassert (it->method != next_element_from_string |
| 3920 | || (STRINGP (it->string) | 3921 | || (STRINGP (it->string) |
| 3921 | && IT_STRING_CHARPOS (*it) >= 0)); | 3922 | && IT_STRING_CHARPOS (*it) >= 0)); |