mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 19:59:38 +00:00
Allow :pin to accept a symbol
This commit is contained in:
parent
5c85433fac
commit
b75c1cb47e
1 changed files with 6 additions and 3 deletions
|
@ -304,9 +304,12 @@ the user specified.")
|
||||||
(:pin
|
(:pin
|
||||||
(use-package-only-one (symbol-name head) args
|
(use-package-only-one (symbol-name head) args
|
||||||
(lambda (label arg)
|
(lambda (label arg)
|
||||||
(if (stringp arg)
|
(cond
|
||||||
arg
|
((stringp arg) arg)
|
||||||
(use-package-error ":pin wants an archive name (a string)")))))
|
((symbolp arg) (symbol-name arg))
|
||||||
|
(t
|
||||||
|
(use-package-error
|
||||||
|
":pin wants an archive name (a string)"))))))
|
||||||
|
|
||||||
(_ (use-package-error (format "Unrecognized keyword: %s" head)))))
|
(_ (use-package-error (format "Unrecognized keyword: %s" head)))))
|
||||||
(use-package-normalize-plist name-symbol tail)))))
|
(use-package-normalize-plist name-symbol tail)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue