# HG changeset patch # User Chong Yidong # Date 1215316266 0 # Node ID addc38841ba7ea6b8290ec1cb71d51695771ffc4 # Parent ba8a7a0f34d3a6fbcad5be8f989e61cfe7daf30d (set_font_frame_param): Don't try to set the font parameter if it is still unspecified in the lface. diff -r ba8a7a0f34d3 -r addc38841ba7 src/xfaces.c --- a/src/xfaces.c Sun Jul 06 03:50:54 2008 +0000 +++ b/src/xfaces.c Sun Jul 06 03:51:06 2008 +0000 @@ -3501,11 +3501,14 @@ Lisp_Object frame, lface; { struct frame *f = XFRAME (frame); - - if (FRAME_WINDOW_P (f)) - { - Lisp_Object font = LFACE_FONT (lface); - + Lisp_Object font; + + if (FRAME_WINDOW_P (f) + /* Don't do anything if the font is `unspecified'. This can + happen during frame creation. */ + && (font = LFACE_FONT (lface), + ! UNSPECIFIEDP (font))) + { if (FONT_SPEC_P (font)) { font = font_load_for_lface (f, XVECTOR (lface)->contents, font);