Mercurial > emacs
comparison src/xdisp.c @ 36865:95997b31956c
(highlight_trailing_whitespace): Glyphs whose object
is an integer don't have to be for space characters.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 19 Mar 2001 12:34:54 +0000 |
parents | 0d387c8ca7db |
children | 88b92b222846 |
comparison
equal
deleted
inserted
replaced
36864:f9e2a2533bef | 36865:95997b31956c |
---|---|
8490 row->enabled_p)) | 8490 row->enabled_p)) |
8491 { | 8491 { |
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 |
8498 goto cancel; | 8502 goto cancel; |
8499 } | 8503 } |
12250 if (used) | 12254 if (used) |
12251 { | 12255 { |
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 |
12264 /* If last glyph is a space or stretch, and it's trailing | 12268 /* If last glyph is a space or stretch, and it's trailing |
12265 whitespace, set the face of all trailing whitespace glyphs in | 12269 whitespace, set the face of all trailing whitespace glyphs in |