mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-09 05:30:50 +00:00
Make use-package-normalize-value handle nil better
The previous version of `use-package-normalize-value', when passed nil, would return the list (symbol-value (quote nil)). This meant that keywords which used `use-package-normalize-value' or the higher-level normalizer `use-package-normalize-test' would get a non-nil argument (i.e. the above list) even when the user specified nil to the package. This had the concrete impact of making it so that :defer-install nil was treated as :defer-install t.
This commit is contained in:
parent
2db2b56b17
commit
a9ffffcee5
1 changed files with 2 additions and 1 deletions
|
@ -778,7 +778,8 @@ If the package is installed, its entry is removed from
|
||||||
|
|
||||||
(defsubst use-package-normalize-value (label arg)
|
(defsubst use-package-normalize-value (label arg)
|
||||||
"Normalize a value."
|
"Normalize a value."
|
||||||
(cond ((symbolp arg)
|
(cond ((null arg) nil)
|
||||||
|
((symbolp arg)
|
||||||
`(symbol-value ',arg))
|
`(symbol-value ',arg))
|
||||||
((functionp arg)
|
((functionp arg)
|
||||||
`(funcall #',arg))
|
`(funcall #',arg))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue