mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Fix :ensure value interpretation
This commit is contained in:
parent
4ae584f3ff
commit
e68d00d525
1 changed files with 11 additions and 1 deletions
|
@ -234,12 +234,22 @@ then the expanded macros do their job silently."
|
|||
(use-package-as-one (symbol-name head) args
|
||||
#'use-package-normalize-symbols))
|
||||
|
||||
((or :defer :demand :disabled :ensure)
|
||||
((or :defer :demand :disabled)
|
||||
(if (null args)
|
||||
t
|
||||
(use-package-only-one (symbol-name head) args
|
||||
#'use-package-normalize-value)))
|
||||
|
||||
(:ensure
|
||||
(use-package-only-one (symbol-name head) args
|
||||
(if (null args)
|
||||
t
|
||||
(lambda (label arg)
|
||||
(if (symbolp arg)
|
||||
arg
|
||||
(use-package-error
|
||||
":ensure wants an optional package name (a unquoted symbol name)"))))))
|
||||
|
||||
((or :if :when :unless)
|
||||
(use-package-only-one (symbol-name head) args
|
||||
#'use-package-normalize-value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue