]> git.eshelyaron.com Git - emacs.git/commitdiff
If :load-path is absolute, don't expand it
authorJohn Wiegley <johnw@newartisans.com>
Sun, 17 Jun 2012 21:44:49 +0000 (16:44 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Sun, 17 Jun 2012 21:44:49 +0000 (16:44 -0500)
lisp/use-package/use-package.el

index b1004b3dbe20d6cd2fa2050acc66bf4aa380911e..8c8fd27f28d38f87b58c77b821734da634342b2c 100644 (file)
          ,@(mapcar
             #'(lambda (path)
                 `(add-to-list 'load-path
-                              ,(expand-file-name path user-emacs-directory)))
+                              ,(if (file-name-absolute-p path)
+                                   path
+                                 (expand-file-name path user-emacs-directory))))
             (if (stringp pkg-load-path)
                 (list pkg-load-path)
               pkg-load-path))