]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Merge pull request from alexko/master"
authorJohn Wiegley <johnw@newartisans.com>
Thu, 8 May 2014 18:25:39 +0000 (13:25 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 8 May 2014 18:25:39 +0000 (13:25 -0500)
This reverts commit 8c04377608bd9b27d6fc6c37990984185563a907, reversing
changes made to a9ba368fa79e4c15b624de73e30c87c98475d466.
GitHub-reference: https://github.com/jwiegley/use-package/issues/104

lisp/use-package/use-package.el

index 51c4dfaae2002023a151178ba5c2e80645f90ca1..0012d26597d509a9d54a2f2d0929d17e72ff384b 100644 (file)
@@ -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