]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up mechanism for removing -l loadup from end.
authorKarl Heuer <kwzh@gnu.org>
Fri, 5 Jun 1998 15:49:43 +0000 (15:49 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 5 Jun 1998 15:49:43 +0000 (15:49 +0000)
lisp/loadup.el

index e94482647f5302ca7911232b239028d7899b95a6..d98eda2d526d5da5536703becef75724e7358a9a 100644 (file)
 
 ;; For machines with CANNOT_DUMP defined in config.h,
 ;; this file must be loaded each time Emacs is run.
-;; So run the startup code now.
+;; So run the startup code now.  First, remove `-l loadup' from args.
 
-(or (equal (nth 3 command-line-args) "dump")
-    (equal (nth 4 command-line-args) "dump")
-    (progn
-      ;; Avoid loading loadup.el a second time!
-      (setq command-line-args (cdr (cdr command-line-args)))
-      (eval top-level)))
+(if (and (equal (nth 1 command-line-args) "-l")
+        (equal (nth 2 command-line-args) "loadup"))
+    (setcdr command-line-args (nthcdr 3 command-line-args)))
+
+(eval top-level)
 
 ;;; loadup.el ends here