# HG changeset patch # User Richard M. Stallman # Date 757646558 0 # Node ID 87c67c389867e88787b5f6dddd886cb8b469f4e9 # Parent e66b058ec9f6a975ff7d1119afc9da2bf5b7cf1e (Fx_list_fonts): Don't fail to init `tail'. (Fx_create_frame): Add to Vframe_list before making visible. diff -r e66b058ec9f6 -r 87c67c389867 src/xfns.c --- a/src/xfns.c Mon Jan 03 20:53:26 1994 +0000 +++ b/src/xfns.c Tue Jan 04 01:22:38 1994 +0000 @@ -1892,6 +1892,12 @@ tem = x_get_arg (parms, Qunsplittable, 0, 0, boolean); f->no_split = minibuffer_only || EQ (tem, Qt); + /* It is now ok to make the frame official + even if we get an error below. + And the frame needs to be on Vframe_list + or making it visible won't work. */ + Vframe_list = Fcons (frame, Vframe_list); + /* Make the window appear on the frame and enable display, unless the caller says not to. */ { @@ -1909,7 +1915,6 @@ ; } - Vframe_list = Fcons (frame, Vframe_list); return frame; #else /* X10 */ struct frame *f; @@ -2336,6 +2341,7 @@ Lisp_Object *tail; int i; + tail = &list; for (i = 0; i < num_fonts; i++) { #ifdef BROKEN_XLISTFONTSWITHINFO