tty-handle-args fix for bug#14608
authorGlenn Morris <rgm@gnu.org>
Thu, 13 Jun 2013 17:59:10 +0000 (13:59 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 13 Jun 2013 17:59:10 +0000 (13:59 -0400)
* startup.el (tty-handle-args): Don't just discard "--" and anything after.

lisp/ChangeLog
lisp/startup.el

index 6ed8840..89d970a 100644 (file)
@@ -1,5 +1,8 @@
 2013-06-13  Glenn Morris  <rgm@gnu.org>
 
+       * startup.el (tty-handle-args):
+       Don't just discard "--" and anything after.  (Bug#14608)
+
        * emacs-lisp/lisp.el (forward-sexp, backward-sexp): Doc fixes.
 
 2013-06-13  Michael Albinus  <michael.albinus@gmx.de>
index b7b4c15..f21e8c4 100644 (file)
@@ -715,7 +715,7 @@ opening the first frame (e.g. open a connection to an X server).")
                      default-frame-alist))
              (t
                (push argi rest)))))
-    (nreverse rest)))
+    (nconc (nreverse rest) args)))
 
 (declare-function x-get-resource "frame.c"
                  (attribute class &optional component subclass))