1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Allow :pin to accept a symbol

This commit is contained in:
John Wiegley 2015-03-16 02:48:13 -05:00
parent 5c85433fac
commit b75c1cb47e

View File

@ -304,9 +304,12 @@ the user specified.")
(:pin
(use-package-only-one (symbol-name head) args
(lambda (label arg)
(if (stringp arg)
arg
(use-package-error ":pin wants an archive name (a string)")))))
(cond
((stringp arg) arg)
((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-normalize-plist name-symbol tail)))))