From af4b4df031ea2edd29464f3592a16dd77f4f470d Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 6 May 2018 11:54:56 -0400 Subject: [PATCH] dump: fix warning about layer list changed outside of dotfile func. --- core/core-configuration-layer.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-configuration-layer.el b/core/core-configuration-layer.el index 2d6871620..bfdf8b0a2 100644 --- a/core/core-configuration-layer.el +++ b/core/core-configuration-layer.el @@ -563,6 +563,10 @@ refreshed during the current session." configuration-layer--last-dotspacemacs-configuration-layers-file)) (let ((layers dotspacemacs-configuration-layers)) (dotspacemacs|call-func dotspacemacs/layers "Calling dotfile layers...") + ;; `dotspacemacs--configuration-layers-saved' is used to detect if the layer + ;; list has been changed outside of function `dotspacemacs/layers' + (setq dotspacemacs--configuration-layers-saved + dotspacemacs-configuration-layers) (setq changed-since-last-dump-p (not (equal layers dotspacemacs-configuration-layers))) ;; save layers list to file