[core] Avoid setting safe-local-variable to nil in spacemacs|defc

This commit is contained in:
Maximilian Wolff 2021-04-17 22:38:29 +02:00
parent 8814329a11
commit 539c7849d5
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
1 changed files with 2 additions and 1 deletions

View File

@ -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