]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix `custom-delayed-init-variables' problem when re-dumping emacs
authorGong Qijian <gongqijian@gmail.com>
Tue, 18 May 2021 14:35:48 +0000 (16:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 May 2021 14:38:05 +0000 (16:38 +0200)
* lisp/startup.el (command-line): Don't bug out on redumping Emacs
(bug#48492).

Copyright-paperwork-exempt: yes

lisp/startup.el

index bb25c1b7b0b41250e3fa62447cd6181c2aecc5cd..2ba5d7455400440009cd412e37983d19ba54cc51 100644 (file)
@@ -1197,11 +1197,11 @@ please check its value")
 
   ;; Re-evaluate predefined variables whose initial value depends on
   ;; the runtime context.
-  (setq custom-delayed-init-variables
-        ;; Initialize them in the same order they were loaded, in case there
-        ;; are dependencies between them.
-        (nreverse custom-delayed-init-variables))
-  (mapc #'custom-reevaluate-setting custom-delayed-init-variables)
+  (when (listp custom-delayed-init-variables)
+    (mapc #'custom-reevaluate-setting
+          ;; Initialize them in the same order they were loaded, in
+          ;; case there are dependencies between them.
+          (reverse custom-delayed-init-variables)))
   (setq custom-delayed-init-variables t)
 
   ;; Warn for invalid user name.