Fix auto-removal of builtin-preferred packges

This commit is contained in:
Henrik Lissner 2019-07-07 14:07:41 +02:00
parent faeefc1775
commit b58b5e1d64
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -101,7 +101,10 @@ See `doom-package-backend' to get backend for currently installed package."
(cond ((not (doom-package-registered-p package))
(unless noerror
(error "%s package is not registered" package)))
((eval (doom-package-prop package :built-in))
((let ((builtin (eval (doom-package-prop package :built-in) t)))
(or (and (eq builtin 'prefer)
(locate-library (symbol-name package) nil doom-site-load-path))
(eq builtin 't)))
'emacs)
((doom-package-prop package :recipe)
'quelpa)