summaryrefslogtreecommitdiff
path: root/lisp/use-package
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-12-11 16:26:50 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2022-12-11 16:48:41 +0100
commit4893a15631743e1d885bd09b9184bc112c7eadcb (patch)
treed61435436bff6ddea6bea51001cfe27b338c2ada /lisp/use-package
parent074b7e6f4d1eefacade7b4c5b19ee9b03a2367ae (diff)
downloademacs-4893a15631743e1d885bd09b9184bc112c7eadcb.tar.gz
Fix use-package-defaults defcustom type (bug#59941)
* lisp/use-package/use-package-core.el (use-package-defaults): Enlarge type to allow for keywords such as :ensure and :pin to be added later, remedying a failure in test-custom-opts.
Diffstat (limited to 'lisp/use-package')
-rw-r--r--lisp/use-package/use-package-core.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el
index ed6a65494fa..1dee08e55b2 100644
--- a/lisp/use-package/use-package-core.el
+++ b/lisp/use-package/use-package-core.el
@@ -210,9 +210,7 @@ a symbol) and a list of keywords (in normalized form). It should
return nil or non-nil depending on whether defaulting should be
attempted."
:type `(repeat
- (list (choice :tag "Keyword"
- ,@(mapcar #'(lambda (k) (list 'const k))
- use-package-keywords))
+ (list (symbol :tag "Keyword")
(choice :tag "Default value" sexp function)
(choice :tag "Enable if non-nil" sexp function)))
:group 'use-package)