]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): If we don't find the user's init file,
authorKarl Heuer <kwzh@gnu.org>
Sun, 25 Jul 1999 05:44:56 +0000 (05:44 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 25 Jul 1999 05:44:56 +0000 (05:44 +0000)
set user-init-file to nil.

lisp/startup.el

index c64a25edef205a823bda884305abeb6acd6b2e62..38b9b1b8afdd314e90b704c4be8bbe7ff5bbe9c4 100644 (file)
@@ -724,6 +724,11 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
                    ;; into user-init-file.
                    (setq user-init-file t)
                    (load user-init-file-1 t t)
+                   ;; If we did not find the user's init file,
+                   ;; set user-init-file conclusively to nil;
+                   ;; don't let it be set from default.el.
+                   (if (eq user-init-file t)
+                       (setq user-init-file nil))
                    (or inhibit-default-init
                        (let ((inhibit-startup-message nil))
                          ;; Users are supposed to be told their rights.