Function: x-handle-switch

x-handle-switch is a byte-compiled function defined in common-win.el.gz.

Signature

(x-handle-switch SWITCH &optional NUMERIC)

Source Code

;; Defined in /usr/src/emacs/lisp/term/common-win.el.gz
;; Handler for switches of the form "-switch value" or "-switch".
(defun x-handle-switch (switch &optional numeric)
  (let ((aelt (assoc switch command-line-x-option-alist)))
    (if aelt
	(setq default-frame-alist
	      (cons (cons (nth 3 aelt)
			  (if numeric
			      (string-to-number (pop x-invocation-args))
			    (or (nth 4 aelt) (pop x-invocation-args))))
		    default-frame-alist)))))