aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/startup.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 510a529581e..575e961bd59 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -697,14 +697,16 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
697 ;; If we loaded a compiled file, set 697 ;; If we loaded a compiled file, set
698 ;; `user-init-file' to the source version if that 698 ;; `user-init-file' to the source version if that
699 ;; exists. 699 ;; exists.
700 (if (and user-init-file 700 (when (and user-init-file
701 (equal (file-name-extension user-init-file) 701 (equal (file-name-extension user-init-file)
702 "elc")) 702 "elc")
703 (let ((el (concat (file-name-sans-extension 703 (file-exists-p user-init-file-1))
704 user-init-file) 704 (when (file-newer-than-file-p
705 ".el"))) 705 user-init-file-1 user-init-file)
706 (if (file-exists-p el) 706 (message "Warning: %s is newer than %s"
707 (setq user-init-file el)))) 707 user-init-file-1 user-init-file)
708 (sit-for 1))
709 (setq user-init-file user-init-file-1))
708 (or inhibit-default-init 710 (or inhibit-default-init
709 (let ((inhibit-startup-message nil)) 711 (let ((inhibit-startup-message nil))
710 ;; Users are supposed to be told their rights. 712 ;; Users are supposed to be told their rights.