From e5e301b3e467a62f84d3679c1e61f1675cdbdb67 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 8 Jan 2022 18:50:21 +0100 Subject: [PATCH] refactor: remove redundant load-file advice A mistake that snuck into 55c1cac while backporting some code from the CLI rewrite. It was harmless and likely had no side effects, however. Amend: 55c1cac43f3f --- early-init.el | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/early-init.el b/early-init.el index 2191b8903..2ee09f94f 100644 --- a/early-init.el +++ b/early-init.el @@ -63,18 +63,6 @@ (define-advice startup--load-user-init-file (:before (&rest _) init-doom) (advice-remove #'load-file #'load-file@silence))) -;; Site files tend to use `load-file', which emits "Loading X..." messages in -;; the echo area, which in turn triggers a redisplay. Redisplays can have a -;; substantial effect on startup times and in this case, happens so early that -;; Emacs may jarringly flash white while starting up. -(define-advice load-file (:override (file) silence) - (load file nil 'nomessage)) - -;; ...Then undo our `load-file' advice above, to limit the scope of any edge -;; cases it may introduce down the road. -(define-advice startup--load-user-init-file (:before (&rest _) init-doom) - (advice-remove #'load-file #'load-file@silence)) - ;; ;;; Bootstrap