(x-handle-parent-id): Remove free variable `parent-id'.
authorGlenn Morris <rgm@gnu.org>
Fri, 8 Feb 2008 08:33:42 +0000 (08:33 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 8 Feb 2008 08:33:42 +0000 (08:33 +0000)
lisp/ChangeLog
lisp/term/x-win.el

index 6b5790b..c743c91 100644 (file)
@@ -23,6 +23,8 @@
        (pcmpl-ssh-hosts): Move definition before use.  Handle lines
        without hostnames, and multiple hostnames per line.
 
+       * term/x-win.el (x-handle-parent-id): Remove free variable `parent-id'.
+
 2008-02-08  Phil Hagelberg <phil@evri.com>
 
        * pcmpl-unix.el (pcmpl-ssh-known-hosts-file): New defcustom.
index 5ce1a03..acbb316 100644 (file)
 (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)))
+  (setq initial-frame-alist (cons
+                             (cons 'parent-id
+                                   (string-to-number (car x-invocation-args)))
+                             initial-frame-alist)
+        x-invocation-args (cdr x-invocation-args)))
 
 (defvar x-display-name nil
   "The name of the X display on which Emacs was started.