mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39: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
|
||||
(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…
Add table
Add a link
Reference in a new issue