[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113615: * frame.c (Fmake_terminal_frame): Use store
From: |
Dmitry Antipov |
Subject: |
[Emacs-diffs] trunk r113615: * frame.c (Fmake_terminal_frame): Use store_in_alist to setup |
Date: |
Wed, 31 Jul 2013 07:46:34 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113615
revision-id: address@hidden
parent: address@hidden
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Wed 2013-07-31 11:45:34 +0400
message:
* frame.c (Fmake_terminal_frame): Use store_in_alist to setup
frame parameters and call to Fmodify_frame_parameters just once.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/frame.c frame.c-20091113204419-o5vbwnq5f7feedwu-243
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-07-31 06:05:05 +0000
+++ b/src/ChangeLog 2013-07-31 07:45:34 +0000
@@ -1,5 +1,10 @@
2013-07-31 Dmitry Antipov <address@hidden>
+ * 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 <address@hidden>
+
* frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.
(x_figure_window_size): Likewise. Adjust to return long.
(syms_of_frame): Do not DEFSYM Qterminal_live_p.
=== modified file 'src/frame.c'
--- a/src/frame.c 2013-07-31 06:05:05 +0000
+++ b/src/frame.c 2013-07-31 07:45:34 +0000
@@ -724,16 +724,13 @@
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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113615: * frame.c (Fmake_terminal_frame): Use store_in_alist to setup,
Dmitry Antipov <=