emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FONT_HEIGHT


From: Eli Zaretskii
Subject: FONT_HEIGHT
Date: Thu, 16 Nov 2000 18:52:09 +0200 (IST)

The last changes to xdisp.c prevent Emacs from linking when FONT_HEIGHT
isn't defined.  This happens on MSDOS, and should probably also happen if 
Emacs is configured --without-x.

The following patch fixes this for me, but I'm not sure it's the right 
thing to do.

(Btw, did someone try to build after configuring --without-x?  I think we 
should try it, just in case.)

*** src/xdisp.c~3       Thu Nov 16 12:28:06 2000
--- src/xdisp.c Thu Nov 16 18:40:52 2000
*************** pos_visible_p (w, charpos, fully, exact_
*** 1002,1009 ****
                             ? it.max_ascent + it.max_descent
                             : last_height);
            }
!         else 
            line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame)));
        }
        line_bottom_y = line_top_y + line_height;
  
--- 1002,1013 ----
                             ? it.max_ascent + it.max_descent
                             : last_height);
            }
! #ifdef FONT_HEIGHT
!         else if (FRAME_WINDOW_P (w->frame))
            line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame)));
+ #endif
+         else
+           line_height = last_height;
        }
        line_bottom_y = line_top_y + line_height;
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]