Mercurial > emacs
changeset 97867:2aa441279c89
(init_display): Set `tty's association in frame's parameters alist to the name
of the terminal device, if that is known.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 30 Aug 2008 12:14:31 +0000 |
parents | 5130506ce23b |
children | 63c917af418b |
files | src/dispnew.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Sat Aug 30 03:26:14 2008 +0000 +++ b/src/dispnew.c Sat Aug 30 12:14:31 2008 +0000 @@ -6944,7 +6944,13 @@ Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty_type, Ftty_type (selected_frame)), Qnil)); - Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty, Qnil), Qnil)); + if (t->display_info.tty->name) + Fmodify_frame_parameters (selected_frame, + Fcons (Fcons (Qtty, build_string (t->display_info.tty->name)), + Qnil)); + else + Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty, Qnil), + Qnil)); } {