]> git.eshelyaron.com Git - emacs.git/commitdiff
Byte-compilation related fix
authorJohn Wiegley <johnw@newartisans.com>
Fri, 22 Jun 2012 06:32:59 +0000 (01:32 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 22 Jun 2012 06:32:59 +0000 (01:32 -0500)
lisp/use-package/use-package.el

index 1f8f7b4c5033d5475d529a881d0dadc5117321fc..768df4f003a6437be52fee9c5c2696682fd924df 100644 (file)
 ;;; Code:
 
 (require 'bind-key)
-
-(defgroup use-package nil
-  "A use-package declaration for simplifying your .emacs"
-  :group 'startup)
+(require 'bytecomp)
+(require 'diminish nil t)
 
 (eval-when-compile
   (require 'cl))
 
-(require 'bind-key)
-(require 'diminish nil t)
+(defgroup use-package nil
+  "A use-package declaration for simplifying your .emacs"
+  :group 'startup)
 
 (defcustom use-package-verbose t
   "Whether to report about loading and configuration details."
                 (list pkg-load-path)
               pkg-load-path))
 
-         (eval-when-compile
+         (when byte-compile-current-file
            ,@defines-eval
            ,(if (stringp name)
                 `(load ,name t)