diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-07-31 11:45:34 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-07-31 11:45:34 +0400 |
commit | 84231434a297c46f37378410c23d9684f3bde5bc (patch) | |
tree | 2c20568d450b1e7cc619bb65bad04f9681445bf2 /src/frame.c | |
parent | 5002a754217cfcc40c6747ea9d659c2062f057f2 (diff) |
* frame.c (Fmake_terminal_frame): Use store_in_alist to setup
frame parameters and call to Fmodify_frame_parameters just once.
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/frame.c b/src/frame.c index c7353bf42d..9e156f3f0d 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. */ |