From 84231434a297c46f37378410c23d9684f3bde5bc Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Wed, 31 Jul 2013 11:45:34 +0400 Subject: [PATCH] * frame.c (Fmake_terminal_frame): Use store_in_alist to setup frame parameters and call to Fmodify_frame_parameters just once. --- src/ChangeLog | 5 +++++ src/frame.c | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b359b8df097..0e3e43c0cc3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-07-31 Dmitry Antipov + + * frame.c (Fmake_terminal_frame): Use store_in_alist to setup + frame parameters and call to Fmodify_frame_parameters just once. + 2013-07-31 Dmitry Antipov * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean. diff --git a/src/frame.c b/src/frame.c index c7353bf42de..9e156f3f0d6 100644 --- a/src/frame.c +++ b/src/frame.c @@ -724,16 +724,13 @@ affects all frames on the same terminal device. */) adjust_glyphs (f); calculate_costs (f); XSETFRAME (frame, f); + + store_in_alist (&parms, Qtty_type, build_string (t->display_info.tty->type)); + store_in_alist (&parms, Qtty, + (t->display_info.tty->name + ? build_string (t->display_info.tty->name) + : Qnil)); Fmodify_frame_parameters (frame, parms); - Fmodify_frame_parameters - (frame, list1 (Fcons (Qtty_type, - build_string (t->display_info.tty->type)))); - if (t->display_info.tty->name != NULL) - Fmodify_frame_parameters - (frame, list1 (Fcons (Qtty, - build_string (t->display_info.tty->name)))); - else - Fmodify_frame_parameters (frame, list1 (Fcons (Qtty, Qnil))); /* Make the frame face alist be frame-specific, so that each frame could change its face definitions independently. */ -- 2.39.2