summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index f40287cc3cb..5186c27ec7b 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6100,15 +6100,12 @@ init_display (void)
(*initial_terminal->delete_terminal_hook) (initial_terminal);
/* Update frame parameters to reflect the new type. */
- Fmodify_frame_parameters
- (selected_frame, FRAME_PARAMETER (Qtty_type,
- Ftty_type (selected_frame)));
- if (t->display_info.tty->name)
- Fmodify_frame_parameters
- (selected_frame,
- FRAME_PARAMETER (Qtty, build_string (t->display_info.tty->name)));
- else
- Fmodify_frame_parameters (selected_frame, FRAME_PARAMETER (Qtty, Qnil));
+ AUTO_FRAME_ARG (tty_type_arg, Qtty_type, Ftty_type (selected_frame));
+ Fmodify_frame_parameters (selected_frame, tty_type_arg);
+ AUTO_FRAME_ARG (tty_arg, Qtty, (t->display_info.tty->name
+ ? build_string (t->display_info.tty->name)
+ : Qnil));
+ Fmodify_frame_parameters (selected_frame, tty_arg);
}
{