aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-01-12 00:45:42 +0000
committerKaroly Lorentey2004-01-12 00:45:42 +0000
commit7f19e125070fa016bcfad660febf19f1a84adb76 (patch)
tree0660a518f41bb97cbb5b3e91c32ac12943419dce /src
parent309990406b2d16da6ad4131c6530d309e44945ec (diff)
downloademacs-7f19e125070fa016bcfad660febf19f1a84adb76.tar.gz
emacs-7f19e125070fa016bcfad660febf19f1a84adb76.zip
Fix initialization of the window-system variable.
lisp/faces.el (x-create-frame-with-faces) (tty-create-frame-with-faces): Don't set the window-system parameter here, it seems to be unreliable. lisp/frame.el (make-frame): Don't forget to return the new frame (d'oh). src/frame.c (Qwindow_system): New symbol. (syms_of_frame): Intern it. (Fmake_terminal_frame): Initialize window-system frame parameter. src/frame.h (Qwindow_system): New declaration. src/xfns.c (Fx_create_frame, x_create_tip_frame): Initialize window-system frame parameter. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-56
Diffstat (limited to 'src')
-rw-r--r--src/frame.c6
-rw-r--r--src/frame.h2
-rw-r--r--src/xfns.c4
3 files changed, 11 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index ac4f2a5a369..8ffabfa8b89 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -108,6 +108,7 @@ Lisp_Object Qleft_fringe, Qright_fringe;
108Lisp_Object Qbuffer_predicate, Qbuffer_list; 108Lisp_Object Qbuffer_predicate, Qbuffer_list;
109Lisp_Object Qtty_color_mode; 109Lisp_Object Qtty_color_mode;
110Lisp_Object Qtty, Qtty_type; 110Lisp_Object Qtty, Qtty_type;
111Lisp_Object Qwindow_system;
111 112
112Lisp_Object Qfullscreen, Qfullwidth, Qfullheight, Qfullboth; 113Lisp_Object Qfullscreen, Qfullwidth, Qfullheight, Qfullboth;
113 114
@@ -750,6 +751,7 @@ Note that changing the size of one terminal frame automatically affects all. */
750 XSETFRAME (frame, f); 751 XSETFRAME (frame, f);
751 Fmodify_frame_parameters (frame, Vdefault_frame_alist); 752 Fmodify_frame_parameters (frame, Vdefault_frame_alist);
752 Fmodify_frame_parameters (frame, parms); 753 Fmodify_frame_parameters (frame, parms);
754 Fmodify_frame_parameters (frame, Fcons (Fcons (Qwindow_system, Qnil), Qnil));
753 755
754 /* Make the frame face alist be frame-specific, so that each 756 /* Make the frame face alist be frame-specific, so that each
755 frame could change its face definitions independently. */ 757 frame could change its face definitions independently. */
@@ -4134,7 +4136,9 @@ syms_of_frame ()
4134 staticpro (&Qtty); 4136 staticpro (&Qtty);
4135 Qtty_type = intern ("tty-type"); 4137 Qtty_type = intern ("tty-type");
4136 staticpro (&Qtty_type); 4138 staticpro (&Qtty_type);
4137 4139 Qwindow_system = intern ("window-system");
4140 staticpro (&Qwindow_system);
4141
4138 Qface_set_after_frame_default = intern ("face-set-after-frame-default"); 4142 Qface_set_after_frame_default = intern ("face-set-after-frame-default");
4139 staticpro (&Qface_set_after_frame_default); 4143 staticpro (&Qface_set_after_frame_default);
4140 4144
diff --git a/src/frame.h b/src/frame.h
index 0b58420b18d..14806b2bc04 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1002,6 +1002,8 @@ extern Lisp_Object Qx_resource_name;
1002extern Lisp_Object Qleft, Qright, Qtop, Qbox; 1002extern Lisp_Object Qleft, Qright, Qtop, Qbox;
1003extern Lisp_Object Qdisplay; 1003extern Lisp_Object Qdisplay;
1004 1004
1005extern Lisp_Object Qwindow_system;
1006
1005#ifdef HAVE_WINDOW_SYSTEM 1007#ifdef HAVE_WINDOW_SYSTEM
1006 1008
1007/* The class of this X application. */ 1009/* The class of this X application. */
diff --git a/src/xfns.c b/src/xfns.c
index fc8ee0af77f..6e51965c248 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3334,6 +3334,8 @@ This function is an internal primitive--use `make-frame' instead. */)
3334 specbind (Qx_resource_name, name); 3334 specbind (Qx_resource_name, name);
3335 } 3335 }
3336 3336
3337 Fmodify_frame_parameters (frame, Fcons (Fcons (Qwindow_system, Qx), Qnil));
3338
3337 /* Extract the window parameters from the supplied values 3339 /* Extract the window parameters from the supplied values
3338 that are needed to determine window geometry. */ 3340 that are needed to determine window geometry. */
3339 { 3341 {
@@ -10210,6 +10212,8 @@ x_create_tip_frame (dpyinfo, parms, text)
10210 Qnil)); 10212 Qnil));
10211 } 10213 }
10212 10214
10215 Fmodify_frame_parameters (frame, Fcons (Fcons (Qwindow_system, Qx), Qnil));
10216
10213 f->no_split = 1; 10217 f->no_split = 1;
10214 10218
10215 UNGCPRO; 10219 UNGCPRO;