(command-line-1): --insert: Don't complain on --insert=file.
authorErik Naggum <erik@naggum.no>
Mon, 25 Sep 1995 11:04:07 +0000 (11:04 +0000)
committerErik Naggum <erik@naggum.no>
Mon, 25 Sep 1995 11:04:07 +0000 (11:04 +0000)
lisp/startup.el

index 523dc5c..d7f7f55 100644 (file)
@@ -750,12 +750,12 @@ Type \\[describe-distribution] for information on getting the latest version."))
                       (setq file (expand-file-name file)))
                   (load file nil t)))
                ((string-equal argi "-insert")
-                (or (stringp (car command-line-args-left))
-                    (error "File name omitted from `-insert' option"))
                 (if argval
                     (setq tem argval)
                   (setq tem (car command-line-args-left)
                         command-line-args-left (cdr command-line-args-left)))
+                (or (stringp tem)
+                    (error "File name omitted from `-insert' option"))
                 (insert-file-contents tem))
                ((string-equal argi "-kill")
                 (kill-emacs t))