aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2013-07-31 11:45:34 +0400
committerDmitry Antipov2013-07-31 11:45:34 +0400
commit84231434a297c46f37378410c23d9684f3bde5bc (patch)
tree2c20568d450b1e7cc619bb65bad04f9681445bf2 /src
parent5002a754217cfcc40c6747ea9d659c2062f057f2 (diff)
downloademacs-84231434a297c46f37378410c23d9684f3bde5bc.tar.gz
emacs-84231434a297c46f37378410c23d9684f3bde5bc.zip
* 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')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/frame.c15
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,5 +1,10 @@
12013-07-31 Dmitry Antipov <dmantipov@yandex.ru> 12013-07-31 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 * frame.c (Fmake_terminal_frame): Use store_in_alist to setup
4 frame parameters and call to Fmodify_frame_parameters just once.
5
62013-07-31 Dmitry Antipov <dmantipov@yandex.ru>
7
3 * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean. 8 * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.
4 (x_figure_window_size): Likewise. Adjust to return long. 9 (x_figure_window_size): Likewise. Adjust to return long.
5 (syms_of_frame): Do not DEFSYM Qterminal_live_p. 10 (syms_of_frame): Do not DEFSYM Qterminal_live_p.
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. */)
724 adjust_glyphs (f); 724 adjust_glyphs (f);
725 calculate_costs (f); 725 calculate_costs (f);
726 XSETFRAME (frame, f); 726 XSETFRAME (frame, f);
727
728 store_in_alist (&parms, Qtty_type, build_string (t->display_info.tty->type));
729 store_in_alist (&parms, Qtty,
730 (t->display_info.tty->name
731 ? build_string (t->display_info.tty->name)
732 : Qnil));
727 Fmodify_frame_parameters (frame, parms); 733 Fmodify_frame_parameters (frame, parms);
728 Fmodify_frame_parameters
729 (frame, list1 (Fcons (Qtty_type,
730 build_string (t->display_info.tty->type))));
731 if (t->display_info.tty->name != NULL)
732 Fmodify_frame_parameters
733 (frame, list1 (Fcons (Qtty,
734 build_string (t->display_info.tty->name))));
735 else
736 Fmodify_frame_parameters (frame, list1 (Fcons (Qtty, Qnil)));
737 734
738 /* Make the frame face alist be frame-specific, so that each 735 /* Make the frame face alist be frame-specific, so that each
739 frame could change its face definitions independently. */ 736 frame could change its face definitions independently. */