From 539c7849d5661a02727424cad738d213a0e5aea4 Mon Sep 17 00:00:00 2001 From: Maximilian Wolff Date: Sat, 17 Apr 2021 22:38:29 +0200 Subject: [PATCH] [core] Avoid setting safe-local-variable to nil in spacemacs|defc --- core/core-customization.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-customization.el b/core/core-customization.el index 12df46c5f..deac5b133 100644 --- a/core/core-customization.el +++ b/core/core-customization.el @@ -90,8 +90,9 @@ NOTE: Variables defined with a group listed in `',standard) ,(format "%s\n\nTYPE: %s\n" doc type) :type ,type - :safe ,safe :group group) + (when (not (null ',safe)) + (put ',symbol 'safe-local-variable ,safe)) (when (memq group spacemacs-customization-uncustomizable-groups) ;; HACK: This will make `custom-variable-p' return nil ;; so the `describe-variable' function won't add customization