1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Merge pull request from alexko/master

if package can't be located, treat it the same way as disabled
GitHub-reference: https://github.com/jwiegley/use-package/issues/104
This commit is contained in:
John Wiegley 2014-05-07 12:24:10 -05:00
commit 8c04377608

View file

@ -304,7 +304,16 @@ For full documentation. please see commentary.
(name-symbol (if (stringp name) (intern name) name)))
;; force this immediately -- one off cost
(unless (use-package-plist-get args :disabled)
(unless
(or (use-package-plist-get args :disabled)
(if (locate-library
name-string nil
(mapcar
(lambda (path) (expand-file-name path user-emacs-directory))
(cond ((stringp pkg-load-path) (list pkg-load-path))
((functionp pkg-load-path) (funcall pkg-load-path))
(t pkg-load-path)))) nil
(message "Unable to locate %s" name-string)))
(let* ((ensure (use-package-plist-get args :ensure))
(package-name