aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 3b7b9d39f81..d13f89ad27b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3575,7 +3575,7 @@ handle_single_display_prop (it, prop, object, position,
3575 || EQ (XCAR (prop), Qright_fringe)) 3575 || EQ (XCAR (prop), Qright_fringe))
3576 && CONSP (XCDR (prop))) 3576 && CONSP (XCDR (prop)))
3577 { 3577 {
3578 unsigned face_id = DEFAULT_FACE_ID; 3578 int face_id = DEFAULT_FACE_ID;
3579 int fringe_bitmap; 3579 int fringe_bitmap;
3580 3580
3581 /* Save current settings of IT so that we can restore them 3581 /* Save current settings of IT so that we can restore them
@@ -3594,10 +3594,9 @@ handle_single_display_prop (it, prop, object, position,
3594 if (CONSP (XCDR (XCDR (prop)))) 3594 if (CONSP (XCDR (XCDR (prop))))
3595 { 3595 {
3596 Lisp_Object face_name = XCAR (XCDR (XCDR (prop))); 3596 Lisp_Object face_name = XCAR (XCDR (XCDR (prop)));
3597 3597 int face_id2 = lookup_named_face (it->f, face_name, 'A', 0);
3598 face_id = lookup_named_face (it->f, face_name, 'A'); 3598 if (face_id2 >= 0)
3599 if (face_id < 0) 3599 face_id = face_id2;
3600 return 0;
3601 } 3600 }
3602 3601
3603 push_it (it); 3602 push_it (it);
@@ -14534,7 +14533,9 @@ highlight_trailing_whitespace (f, row)
14534 && glyph->u.ch == ' ')) 14533 && glyph->u.ch == ' '))
14535 && trailing_whitespace_p (glyph->charpos)) 14534 && trailing_whitespace_p (glyph->charpos))
14536 { 14535 {
14537 int face_id = lookup_named_face (f, Qtrailing_whitespace, 0); 14536 int face_id = lookup_named_face (f, Qtrailing_whitespace, 0, 0);
14537 if (face_id < 0)
14538 return;
14538 14539
14539 while (glyph >= start 14540 while (glyph >= start
14540 && BUFFERP (glyph->object) 14541 && BUFFERP (glyph->object)
@@ -18808,7 +18809,7 @@ calc_line_height_property (it, prop, font, boff, total)
18808 struct face *face; 18809 struct face *face;
18809 struct font_info *font_info; 18810 struct font_info *font_info;
18810 18811
18811 face_id = lookup_named_face (it->f, face_name, ' '); 18812 face_id = lookup_named_face (it->f, face_name, ' ', 0);
18812 if (face_id < 0) 18813 if (face_id < 0)
18813 return make_number (-1); 18814 return make_number (-1);
18814 18815