aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/loadup.el
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1998-06-05 15:49:43 +0000
committerKarl Heuer <[email protected]>1998-06-05 15:49:43 +0000
commit7fa26c0a283c0fb76c56fd913559e3188ca783b2 (patch)
tree4d83d90f15b25dff923aba625d2859ffb88c3681 /lisp/loadup.el
parent0f4b266c2ac7f06b854aa8109937f89d33d9bfcc (diff)
Clean up mechanism for removing -l loadup from end.
Diffstat (limited to 'lisp/loadup.el')
-rw-r--r--lisp/loadup.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el
index e94482647f..d98eda2d52 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -251,13 +251,12 @@
;; 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