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:
parent
5c85433fac
commit
b75c1cb47e
@ -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)))))
|
||||
|
Loading…
Reference in New Issue
Block a user