aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-07-25 05:44:56 +0000
committerKarl Heuer1999-07-25 05:44:56 +0000
commit694e6b248dedecb0e1806bd600f4b1bbc50dabc8 (patch)
tree2e2e87cfcf14558a0586a7f73e89060d052d0d1e
parentf687a8793d0135bf14f64904709b8cd178c1697d (diff)
downloademacs-694e6b248dedecb0e1806bd600f4b1bbc50dabc8.tar.gz
emacs-694e6b248dedecb0e1806bd600f4b1bbc50dabc8.zip
(command-line): If we don't find the user's init file,
set user-init-file to nil.
-rw-r--r--lisp/startup.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index c64a25edef2..38b9b1b8afd 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -724,6 +724,11 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
724 ;; into user-init-file. 724 ;; into user-init-file.
725 (setq user-init-file t) 725 (setq user-init-file t)
726 (load user-init-file-1 t t) 726 (load user-init-file-1 t t)
727 ;; If we did not find the user's init file,
728 ;; set user-init-file conclusively to nil;
729 ;; don't let it be set from default.el.
730 (if (eq user-init-file t)
731 (setq user-init-file nil))
727 (or inhibit-default-init 732 (or inhibit-default-init
728 (let ((inhibit-startup-message nil)) 733 (let ((inhibit-startup-message nil))
729 ;; Users are supposed to be told their rights. 734 ;; Users are supposed to be told their rights.