# HG changeset patch # User Jim Blandy # Date 737088466 0 # Node ID 7800e6a864213d8143e93010b12b86afa2d5b1b3 # Parent 1d72336294c6dbce9598f3b9e5110ab7f0e1472f * xdisp.c (display_text_line): Make face-handling code conditional on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach, but it'll do for now. * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE macro here; that's x-specific. Just don't pass the second argument. * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument; use F's default face. diff -r 1d72336294c6 -r 7800e6a86421 src/xdisp.c --- a/src/xdisp.c Tue May 11 01:39:42 1993 +0000 +++ b/src/xdisp.c Tue May 11 02:47:46 1993 +0000 @@ -1701,6 +1701,7 @@ pause = end; +#ifdef HAVE_X_WINDOWS /* Did we hit a face change? Figure out what face we should use now. We also hit this the first time through the loop, to see what face we should start with. */ @@ -1710,6 +1711,7 @@ if (pos < next_face_change && next_face_change < pause) pause = next_face_change; } +#endif /* Wouldn't you hate to read the next line to someone over the phone? */ @@ -1816,6 +1818,7 @@ p1++; } +#ifdef HAVE_X_WINDOWS /* Now we've laid down some characters between p1prev and p1. Let's apply current_face to those who have a face of zero (the default), and apply Vglyph_table to the result. */ @@ -1830,9 +1833,9 @@ *gp = MAKE_GLYPH (GLYPH_CHAR (*gp), (GLYPH_FACE (*gp) == 0 ? current_face - : compute_glyph_face (f, FRAME_DEFAULT_FACE (f), - GLYPH_FACE (*gp)))); + : compute_glyph_face (f, GLYPH_FACE (*gp)))); } +#endif pos++; }