aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2004-01-12 00:45:42 +0000
committerKaroly Lorentey2004-01-12 00:45:42 +0000
commit7f19e125070fa016bcfad660febf19f1a84adb76 (patch)
tree0660a518f41bb97cbb5b3e91c32ac12943419dce /lisp
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 'lisp')
-rw-r--r--lisp/faces.el4
-rw-r--r--lisp/frame.el2
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 4877fd246e0..342ba5b60bd 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1658,7 +1658,7 @@ Value is the new frame created."
1658 (setq parameters (x-handle-named-frame-geometry parameters)) 1658 (setq parameters (x-handle-named-frame-geometry parameters))
1659 (let ((visibility-spec (assq 'visibility parameters)) 1659 (let ((visibility-spec (assq 'visibility parameters))
1660 (frame-list (frame-list)) 1660 (frame-list (frame-list))
1661 (frame (x-create-frame `((window-system . x) (visibility . nil) . ,parameters))) 1661 (frame (x-create-frame `((visibility . nil) . ,parameters)))
1662 success) 1662 success)
1663 (unwind-protect 1663 (unwind-protect
1664 (progn 1664 (progn
@@ -1744,7 +1744,7 @@ Parameters not specified by PARAMETERS are taken from
1744`default-frame-alist'. If either PARAMETERS or `default-frame-alist' 1744`default-frame-alist'. If either PARAMETERS or `default-frame-alist'
1745contains a `reverse' parameter, handle that. Value is the new frame 1745contains a `reverse' parameter, handle that. Value is the new frame
1746created." 1746created."
1747 (let ((frame (make-terminal-frame `((window-system . nil) . ,parameters))) 1747 (let ((frame (make-terminal-frame parameters))
1748 success) 1748 success)
1749 (unwind-protect 1749 (unwind-protect
1750 (progn 1750 (progn
diff --git a/lisp/frame.el b/lisp/frame.el
index 2175bdd8615..f374f838696 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -636,7 +636,7 @@ on `after-make-frame-functions' are run with one arg, the newly created frame."
636 (unless frame-creation-function 636 (unless frame-creation-function
637 (error "Don't know how to create a frame on window system %s" w)) 637 (error "Don't know how to create a frame on window system %s" w))
638 (run-hooks 'before-make-frame-hook) 638 (run-hooks 'before-make-frame-hook)
639 (funcall frame-creation-function parameters) 639 (setq frame (funcall frame-creation-function parameters))
640 (run-hook-with-args 'after-make-frame-functions frame) 640 (run-hook-with-args 'after-make-frame-functions frame)
641 frame)) 641 frame))
642 642