]> git.eshelyaron.com Git - emacs.git/commitdiff
Attempt to fix initialization of startup variables on Android
authorPo Lu <luangruo@yahoo.com>
Wed, 25 Jun 2025 16:02:11 +0000 (00:02 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 19:18:23 +0000 (21:18 +0200)
* lisp/cus-start.el (standard): Revert last change if (featurep
'android), as Android systems perform dumping during the
initialization of the first user session.

(cherry picked from commit 704832f41b9ebf1cb2bef5f8cba4ab00fa31520f)

lisp/cus-start.el

index 7e4f1a2c987059fcb28bf7f01a216269fd07e029..a092f1334e087058061ce2a2b1bbd293fb982817 100644 (file)
@@ -942,7 +942,7 @@ since it could result in memory overflow and make Emacs crash."
       ;; If this is NOT while dumping Emacs, set up the rest of the
       ;; customization info.  This is the stuff that is not needed
       ;; until someone does M-x customize etc.
-      (if dump-mode
+      (if (or dump-mode (and (featurep 'android) (not after-init-time)))
          ;; Don't re-add to custom-delayed-init-variables post-startup.
          ;; Note this is the _only_ initialize property we handle.
          (if (eq (cadr (memq :initialize rest)) #'custom-initialize-delay)