From 6ad66c87ebcb86af631b80a32fb0681b38daf752 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Wed, 27 Aug 2025 23:48:55 -0400 Subject: [PATCH] Fix minimal-emacs-gc-cons-threshold-restore-delay timer --- early-init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 86a9960..b2297d2 100644 --- a/early-init.el +++ b/early-init.el @@ -174,8 +174,8 @@ pre-early-init.el, and post-early-init.el.") "Restore garbage collection settings." (if (bound-and-true-p minimal-emacs-gc-cons-threshold-restore-delay) ;; Defer garbage collection during initialization to avoid 2 collections. - (run-at-time minimal-emacs-gc-cons-threshold-restore-delay nil - #'minimal-emacs--restore-gc-values) + (run-with-timer minimal-emacs-gc-cons-threshold-restore-delay nil + #'minimal-emacs--restore-gc-values) (minimal-emacs--restore-gc-values))) (if minimal-emacs-optimize-startup-gc