core: fix pdumper enabled on SPC f e R no matter what

This commit is contained in:
syl20bnr 2018-06-16 11:05:05 -04:00
parent e1c8f1e3d6
commit b8e0fdd4a5
1 changed files with 4 additions and 3 deletions

View File

@ -584,9 +584,10 @@ refreshed during the current session."
(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))
(when (spacemacs/emacs-with-pdumper-set-p)
(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)