]> git.eshelyaron.com Git - emacs.git/commitdiff
Make setting inhibit-startup-screen in early init work
authorDaniel Colascione <dancol@dancol.org>
Fri, 8 Jun 2018 23:21:39 +0000 (16:21 -0700)
committerDaniel Colascione <dancol@dancol.org>
Fri, 8 Jun 2018 23:22:35 +0000 (16:22 -0700)
* lisp/startup.el (command-line): Bind `inhibit-startup-screen'
around loading the site file instead of unconditionally
resetting it.

lisp/startup.el

index 83fd190ea2b27e00075d929ff5ce7dbd739717d2..245b9ac5ba43167767ccf544282ad3d7c2cc5d67 100644 (file)
@@ -1287,11 +1287,10 @@ please check its value")
     ;; should check init-file-user instead, since that is already set.
     ;; See cus-edit.el for an example.
     (if site-run-file
-       (load site-run-file t t))
-
-    ;; Sites should not disable this.  Only individuals should disable
-    ;; the startup screen.
-    (setq inhibit-startup-screen nil)
+        ;; Sites should not disable the startup screen.
+        ;; Only individuals should disable the startup screen.
+        (let ((inhibit-startup-screen inhibit-startup-screen))
+         (load site-run-file t t)))
 
     ;; Load that user's init file, or the default one, or none.
     (load-user-init-file