aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-01-13 11:44:14 +0000
committerEli Zaretskii2002-01-13 11:44:14 +0000
commit2f9b363a152bbb97b83fef39e633758ba6276149 (patch)
treea3ef5b0e293b9b2cab570aefcc7137344f0831f0
parent8016e514d6f7fed1105304f2f3c1a6b715ade456 (diff)
downloademacs-2f9b363a152bbb97b83fef39e633758ba6276149.tar.gz
emacs-2f9b363a152bbb97b83fef39e633758ba6276149.zip
(x-handle-initial-switch): New function.
-rw-r--r--lisp/term/x-win.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index f161f5cb202..1307376779c 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -110,6 +110,22 @@
110 x-invocation-args 110 x-invocation-args
111 (cdr x-invocation-args)))))) 111 (cdr x-invocation-args))))))
112 112
113;; Handle options that apply to initial frame only
114(defun x-handle-initial-switch (switch)
115 (let ((aelt (assoc switch command-line-x-option-alist)))
116 (if aelt
117 (let ((param (nth 3 aelt))
118 (value (nth 4 aelt)))
119 (if value
120 (setq initial-frame-alist
121 (cons (cons param value)
122 initial-frame-alist))
123 (setq initial-frame-alist
124 (cons (cons param
125 (car x-invocation-args))
126 initial-frame-alist)
127 x-invocation-args (cdr x-invocation-args)))))))
128
113;; Make -iconic apply only to the initial frame! 129;; Make -iconic apply only to the initial frame!
114(defun x-handle-iconic (switch) 130(defun x-handle-iconic (switch)
115 (setq initial-frame-alist 131 (setq initial-frame-alist