diff options
| author | Karoly Lorentey | 2004-01-12 00:45:42 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-12 00:45:42 +0000 |
| commit | 7f19e125070fa016bcfad660febf19f1a84adb76 (patch) | |
| tree | 0660a518f41bb97cbb5b3e91c32ac12943419dce /src | |
| parent | 309990406b2d16da6ad4131c6530d309e44945ec (diff) | |
| download | emacs-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.c | 6 | ||||
| -rw-r--r-- | src/frame.h | 2 | ||||
| -rw-r--r-- | src/xfns.c | 4 |
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; | |||
| 108 | Lisp_Object Qbuffer_predicate, Qbuffer_list; | 108 | Lisp_Object Qbuffer_predicate, Qbuffer_list; |
| 109 | Lisp_Object Qtty_color_mode; | 109 | Lisp_Object Qtty_color_mode; |
| 110 | Lisp_Object Qtty, Qtty_type; | 110 | Lisp_Object Qtty, Qtty_type; |
| 111 | Lisp_Object Qwindow_system; | ||
| 111 | 112 | ||
| 112 | Lisp_Object Qfullscreen, Qfullwidth, Qfullheight, Qfullboth; | 113 | Lisp_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; | |||
| 1002 | extern Lisp_Object Qleft, Qright, Qtop, Qbox; | 1002 | extern Lisp_Object Qleft, Qright, Qtop, Qbox; |
| 1003 | extern Lisp_Object Qdisplay; | 1003 | extern Lisp_Object Qdisplay; |
| 1004 | 1004 | ||
| 1005 | extern 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; |