Fix bug #15484 with link error in the --without-x configuration.
authorEli Zaretskii <eliz@gnu.org>
Sun, 29 Sep 2013 16:27:09 +0000 (19:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 29 Sep 2013 16:27:09 +0000 (19:27 +0300)
 src/xdisp.c (get_next_display_element): Don't call face_for_font in
 a build configured --without-x.

src/ChangeLog
src/xdisp.c

index 784388e..2bedb29 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-29  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (get_next_display_element): Don't call face_for_font in
+       a build configured --without-x.  (Bug#15484)
+
 2013-09-29  Jan Djärv  <jan.h.d@swipnet.se>
 
        * window.c (calc_absolute_offset): #elif should be #elif defined.
index 22ada20..d348b1c 100644 (file)
@@ -6955,6 +6955,7 @@ get_next_display_element (struct it *it)
        }
     }
 
+#ifdef HAVE_WINDOW_SYSTEM
   /* Adjust face id for a multibyte character.  There are no multibyte
      character in unibyte text.  */
   if ((it->what == IT_CHARACTER || it->what == IT_COMPOSITION)
@@ -6995,6 +6996,7 @@ get_next_display_element (struct it *it)
          it->face_id = FACE_FOR_CHAR (it->f, face, c, pos, it->string);
        }
     }
+#endif /* HAVE_WINDOW_SYSTEM */
 
  done:
   /* Is this character the last one of a run of characters with