diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 51c4dfaae20..0012d26597d 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -304,16 +304,7 @@ For full documentation. please see commentary. (name-symbol (if (stringp name) (intern name) name))) ;; force this immediately -- one off cost - (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))) + (unless (use-package-plist-get args :disabled) (let* ((ensure (use-package-plist-get args :ensure)) (package-name