diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2008-02-07 14:07:00 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2008-02-07 14:07:00 +0000 |
commit | 350c1745732e4b3ab88c69eafd48e1baeb173a08 (patch) | |
tree | 16c41daf56e9fc5764800c24c2334e97dd6b5dd1 /lisp/term/x-win.el | |
parent | c434f203bf2ab04da565adafbeb1150f9c6a5d89 (diff) | |
download | emacs-350c1745732e4b3ab88c69eafd48e1baeb173a08.tar.gz |
(x-handle-parent-id): New function.
Diffstat (limited to 'lisp/term/x-win.el')
-rw-r--r-- | lisp/term/x-win.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index f5ec4c27480..5ce1a03ddcc 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -190,6 +190,15 @@ (setq initial-frame-alist (cons (cons 'name x-resource-name) initial-frame-alist))) +;; Handle the --parent-id option. +(defun x-handle-parent-id (switch) + (or (consp x-invocation-args) + (error "%s: missing argument to `%s' option" (invocation-name) switch)) + (setq parent-id (string-to-number (car x-invocation-args)) + x-invocation-args (cdr x-invocation-args)) + (setq initial-frame-alist (cons (cons 'parent-id parent-id) + initial-frame-alist))) + (defvar x-display-name nil "The name of the X display on which Emacs was started. |