Mercurial > emacs
diff src/dispnew.c @ 83362:c3dd82172ed1
Enforce the presence of `window-system' and `tty-type' frame parameters in all frames.
* src/dispnew.c (init_display): Set up `window-system' and `tty-type'
frame parameters in the initial tty frame.
* src/frame.c (Fmake_terminal_frame): Look up the `tty-type' frame
parameter, not `tty' when discovering the tty type of the new frame.
Initialize `tty' and `tty-type' frame parameters in the new frame.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-402
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Wed, 07 Sep 2005 23:28:54 +0000 |
parents | 532e0a9335a9 |
children | 5272862a4865 |
line wrap: on
line diff
--- a/src/dispnew.c Wed Sep 07 23:17:07 2005 +0000 +++ b/src/dispnew.c Wed Sep 07 23:28:54 2005 +0000 @@ -6776,7 +6776,9 @@ d->reference_count++; d->display_info.tty->top_frame = selected_frame; - change_frame_size (XFRAME (selected_frame), FrameRows (d->display_info.tty), FrameCols (d->display_info.tty), 0, 0, 1); + change_frame_size (XFRAME (selected_frame), + FrameRows (d->display_info.tty), + FrameCols (d->display_info.tty), 0, 0, 1); /* Delete the initial display. */ if (--initial_device->reference_count == 0 @@ -6784,9 +6786,11 @@ (*initial_device->delete_device_hook) (initial_device); /* Update frame parameters to reflect the new type. */ + Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qwindow_system, Qnil), Qnil)); Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty_type, Fdisplay_tty_type (selected_frame)), Qnil)); + Fmodify_frame_parameters (selected_frame, Fcons (Fcons (Qtty, Qnil), Qnil)); } {