* xfns.c (Fx_create_frame): Set font parameter directly instead of
authorChong Yidong <cyd@stupidchicken.com>
Sat, 24 Jun 2006 22:27:12 +0000 (22:27 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 24 Jun 2006 22:27:12 +0000 (22:27 +0000)
using x_default_parameter, since x_get_args clears the parm alist.

src/ChangeLog
src/xfns.c

index 8197279..6347573 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (Fx_create_frame): Set font parameter directly instead of
+       using x_default_parameter, since x_get_args clears the parm alist.
+
 2006-06-24  Eli Zaretskii  <eliz@gnu.org>
 
        * dired.c (directory_files_internal) [WINDOWSNT]: Find files
index e6772dc..55575d9 100644 (file)
@@ -3189,8 +3189,7 @@ This function is an internal primitive--use `make-frame' instead.  */)
     if (! STRINGP (font))
       font = build_string ("fixed");
 
-    x_default_parameter (f, parms, Qfont, font,
-                        "font", "Font", RES_TYPE_STRING);
+    x_set_frame_parameters (f, Fcons (Fcons (Qfont, font), Qnil));
   }
 
 #ifdef USE_LUCID