Fix void-variable targets when using unpin! macro

This commit is contained in:
Henrik Lissner 2020-01-28 14:07:08 -05:00
parent 4dc01912f1
commit c6518498b9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -319,10 +319,10 @@ can be used one of five ways:
(unpin! (:lang python javascript) (:tools docker))
Or any combination of the above."
`(progn
`(let ((targets ',targets))
(put 'doom-pinned-packages 'modified
(delete-dups (append targets (get 'doom-pinned-packages 'modified))))
(dolist (target ',targets)
(dolist (target targets)
(cond
((eq target t)
(setq doom-pinned-packages nil))