]> git.eshelyaron.com Git - emacs.git/commitdiff
Small startup fix for current-load-list
authorGlenn Morris <rgm@gnu.org>
Wed, 17 Jan 2018 01:55:20 +0000 (20:55 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 17 Jan 2018 01:55:20 +0000 (20:55 -0500)
* lisp/startup.el (command-line):
Avoid current-load-list being non-nil after startup ends.

lisp/startup.el

index 6001dc9a07bfbc5ed9a3e9d91bcbf0eb11291431..9d16b59defded3e31da116e6e57f8530f74a4c07 100644 (file)
@@ -1090,11 +1090,12 @@ please check its value")
 
   ;; Re-evaluate predefined variables whose initial value depends on
   ;; the runtime context.
-  (mapc 'custom-reevaluate-setting
-        ;; Initialize them in the same order they were loaded, in case there
-        ;; are dependencies between them.
-        (prog1 (nreverse custom-delayed-init-variables)
-          (setq custom-delayed-init-variables nil)))
+  (let (current-load-list) ; c-r-s may call defvar, and hence LOADHIST_ATTACH
+    (mapc 'custom-reevaluate-setting
+          ;; Initialize them in the same order they were loaded, in case there
+          ;; are dependencies between them.
+          (prog1 (nreverse custom-delayed-init-variables)
+            (setq custom-delayed-init-variables nil))))
 
   (normal-erase-is-backspace-setup-frame)