diff options
| author | Gerd Moellmann | 2001-03-19 12:35:22 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-03-19 12:35:22 +0000 |
| commit | ade0bee1fc3198eecd99b886cd9208486854ea72 (patch) | |
| tree | 9365969083a5434ec207f82b897148d9a7126cdd /src | |
| parent | 1b122be278cdc06f012b7f4b052ed83fd6f8f7c5 (diff) | |
| download | emacs-ade0bee1fc3198eecd99b886cd9208486854ea72.tar.gz emacs-ade0bee1fc3198eecd99b886cd9208486854ea72.zip | |
(highlight_trailing_whitespace): Glyphs whose object
is an integer don't have to be for space characters.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9253f629de2..5d006088be6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-03-19 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (highlight_trailing_whitespace): Glyphs whose object | ||
| 4 | is an integer don't have to be for space characters. | ||
| 5 | |||
| 1 | 2001-03-16 Gerd Moellmann <gerd@gnu.org> | 6 | 2001-03-16 Gerd Moellmann <gerd@gnu.org> |
| 2 | 7 | ||
| 3 | * indent.c (current_column, current_column_1, Fmove_to_column) | 8 | * indent.c (current_column, current_column_1, Fmove_to_column) |
diff --git a/src/xdisp.c b/src/xdisp.c index ef54efc1975..274c133aa87 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -8492,6 +8492,10 @@ redisplay_internal (preserve_echo_area) | |||
| 8492 | xassert (this_line_vpos == it.vpos); | 8492 | xassert (this_line_vpos == it.vpos); |
| 8493 | xassert (this_line_y == it.current_y); | 8493 | xassert (this_line_y == it.current_y); |
| 8494 | set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0); | 8494 | set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0); |
| 8495 | #if GLYPH_DEBUG | ||
| 8496 | *w->desired_matrix->method = 0; | ||
| 8497 | debug_method_add (w, "optimization 3"); | ||
| 8498 | #endif | ||
| 8495 | goto update; | 8499 | goto update; |
| 8496 | } | 8500 | } |
| 8497 | else | 8501 | else |
| @@ -12252,12 +12256,12 @@ highlight_trailing_whitespace (f, row) | |||
| 12252 | struct glyph *start = row->glyphs[TEXT_AREA]; | 12256 | struct glyph *start = row->glyphs[TEXT_AREA]; |
| 12253 | struct glyph *glyph = start + used - 1; | 12257 | struct glyph *glyph = start + used - 1; |
| 12254 | 12258 | ||
| 12255 | /* Skip over space glyphs inserted to display the cursor at the | 12259 | /* Skip over glyphs inserted to display the cursor at the |
| 12256 | end of a line, and for extending the face of the last glyph | 12260 | end of a line, for extending the face of the last glyph |
| 12257 | to the end of the line on terminals. */ | 12261 | to the end of the line on terminals, and for truncation |
| 12262 | and continuation glyphs. */ | ||
| 12258 | while (glyph >= start | 12263 | while (glyph >= start |
| 12259 | && glyph->type == CHAR_GLYPH | 12264 | && glyph->type == CHAR_GLYPH |
| 12260 | && glyph->u.ch == ' ' | ||
| 12261 | && INTEGERP (glyph->object)) | 12265 | && INTEGERP (glyph->object)) |
| 12262 | --glyph; | 12266 | --glyph; |
| 12263 | 12267 | ||