]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix --without-x build.
authorEli Zaretskii <eliz@gnu.org>
Sat, 28 Jul 2012 07:59:34 +0000 (10:59 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 28 Jul 2012 07:59:34 +0000 (10:59 +0300)
 src/xdisp.c (init_iterator): Don't reference tip_frame in a build
 --without-x.  (Bug#11742)

src/ChangeLog
src/xdisp.c

index 42b92de5c26694af1fa916e01ad35af9e1e3d073..8d0e7caf4eaa3b0d330daedb75f519feb5775de7 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-28  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (init_iterator): Don't reference tip_frame in a build
+       --without-x.  (Bug#11742)
+
 2012-07-27  Paul Eggert  <eggert@cs.ucla.edu>
 
        Adjust GDB to reflect pvec_type changes (Bug#12036).
index ecb9f0d50c952bc231fc2d916a33db9666eb1b68..a11b117f067de555e98810c40656039fdbfd88c1 100644 (file)
@@ -2736,7 +2736,11 @@ init_iterator (struct it *it, struct window *w,
      frames when the fringes are turned off.  But leave the dimensions
      zero for tooltip frames, as these glyphs look ugly there and also
      sabotage calculations of tooltip dimensions in x-show-tip.  */
-  if (!(FRAMEP (tip_frame) && it->f == XFRAME (tip_frame)))
+#ifdef HAVE_WINDOW_SYSTEM
+  if (!(FRAME_WINDOW_P (it->f)
+       && FRAMEP (tip_frame)
+       && it->f == XFRAME (tip_frame)))
+#endif
     {
       if (it->line_wrap == TRUNCATE)
        {