From ea1b4815b8961d796f04fbef137a41ae51b9d07e Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Mon, 7 May 2018 00:34:26 -0400 Subject: [PATCH] dump: improve messages feedback when dumping --- core/core-configuration-layer.el | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/core/core-configuration-layer.el b/core/core-configuration-layer.el index a1f19e7e3..ec99334a4 100644 --- a/core/core-configuration-layer.el +++ b/core/core-configuration-layer.el @@ -574,18 +574,29 @@ refreshed during the current session." '(dotspacemacs-configuration-layers) configuration-layer--last-dotspacemacs-configuration-layers-file)) (cond - ((or changed-since-last-dump-p - spacemacs-force-dump) + (changed-since-last-dump-p ;; dump (configuration-layer//load) - (when (not (spacemacs-is-dumping-p)) + (when dotspacemacs-emacs-pdumper-executable-file + (configuration-layer/message "Layer list has changed since last dump.") (configuration-layer//dump-emacs))) + (spacemacs-force-dump + ;; force dump + (configuration-layer//load) + (configuration-layer/message (concat "--force-dump passed on the command line, " + "forcing a redump.")) + (configuration-layer//dump-emacs)) + ((spacemacs-is-dumping-p) + ;; dumping + (configuration-layer//load) + (configuration-layer/message "Dumping Emacs...")) ((and dotspacemacs-emacs-pdumper-executable-file (spacemacs-run-from-dump-p)) ;; dumped (configuration-layer/message "Running from a dumped file. Skipping the loading process!")) (t + ;; standard loading (configuration-layer//load) (when dotspacemacs-emacs-pdumper-executable-file (configuration-layer/message