mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Merge pull request from raxod502/normalize-nil
Make use-package-normalize-value handle nil better GitHub-reference: https://github.com/jwiegley/use-package/issues/449
This commit is contained in:
commit
0a12111d2f
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