aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-17 00:46:01 +0000
committerGerd Moellmann1999-08-17 00:46:01 +0000
commitf1f134908aa6958e614e2a405ba7d6d7b2716da6 (patch)
tree398c6a9096f20777daf4b01a4fbd9b6dee5d1dd5 /src
parentc1ff17c59c87515fcd286fc9bf96122028626b3e (diff)
downloademacs-f1f134908aa6958e614e2a405ba7d6d7b2716da6.tar.gz
emacs-f1f134908aa6958e614e2a405ba7d6d7b2716da6.zip
(direct_output_for_insert): Use
Vshow_trailing_whitespace instead of former iterator member show_trailing_whitespace_p. (direct_output_forward_char): Don't do it if hightlighting trailing whitespace.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 07eccf05fb4..b2a2d97dd62 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3071,7 +3071,7 @@ direct_output_for_insert (g)
3071 /* Give up if highlighting trailing whitespace and we have trailing 3071 /* Give up if highlighting trailing whitespace and we have trailing
3072 whitespace in glyph_row. We would have to remove the trailing 3072 whitespace in glyph_row. We would have to remove the trailing
3073 whitespace face in that case. */ 3073 whitespace face in that case. */
3074 if (it.show_trailing_whitespace_p 3074 if (!NILP (Vshow_trailing_whitespace)
3075 && glyph_row->used[TEXT_AREA]) 3075 && glyph_row->used[TEXT_AREA])
3076 { 3076 {
3077 struct glyph *last; 3077 struct glyph *last;
@@ -3185,7 +3185,7 @@ direct_output_for_insert (g)
3185 glyph_row->contains_overlapping_glyphs_p 3185 glyph_row->contains_overlapping_glyphs_p
3186 |= it.glyph_row->contains_overlapping_glyphs_p; 3186 |= it.glyph_row->contains_overlapping_glyphs_p;
3187 3187
3188 if (it.show_trailing_whitespace_p) 3188 if (!NILP (Vshow_trailing_whitespace))
3189 highlight_trailing_whitespace (it.f, glyph_row); 3189 highlight_trailing_whitespace (it.f, glyph_row);
3190 3190
3191 /* Write glyphs. If at end of row, we can simply call write_glyphs. 3191 /* Write glyphs. If at end of row, we can simply call write_glyphs.
@@ -3283,6 +3283,10 @@ direct_output_forward_char (n)
3283 if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) 3283 if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
3284 return 0; 3284 return 0;
3285 3285
3286 /* Can't use direct output if highlighting trailing whitespace. */
3287 if (!NILP (Vshow_trailing_whitespace))
3288 return 0;
3289
3286 row = MATRIX_ROW (w->current_matrix, w->cursor.vpos); 3290 row = MATRIX_ROW (w->current_matrix, w->cursor.vpos);
3287 3291
3288 if (PT <= MATRIX_ROW_START_BYTEPOS (row) 3292 if (PT <= MATRIX_ROW_START_BYTEPOS (row)