]> git.eshelyaron.com Git - emacs.git/commitdiff
Other minor improvements for byte-compiling
authorJohn Wiegley <johnw@newartisans.com>
Tue, 17 Mar 2015 16:50:25 +0000 (11:50 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 17 Mar 2015 16:50:25 +0000 (11:50 -0500)
lisp/use-package/use-package.el

index 10ae493b63544c988812be1f78885706ee7f784c..ab77fd2baf112b1bf8841d2f72acbd68d45a9c61 100644 (file)
@@ -480,7 +480,7 @@ ARGS is a list of forms, so `((foo))' if only `foo' is being called."
 
      (when (bound-and-true-p byte-compile-current-file)
        (mapcar #'(lambda (fn) `(declare-function ,fn ,name-string))
-               (append (plist-get args :functions) commands)))
+               (plist-get args :functions)))
 
      ;; (if (and defer-loading config-body)
      ;;     `((defalias ',config-defun #'(lambda () ,config-body*))))
@@ -594,13 +594,12 @@ this file.  Usage:
            (requires (plist-get args* :requires))
            (body*
             (use-package-progn
-             (use-package-expand "use-package" "expansion"
-               (if (null requires)
-                   expansion
-                 `((if ,(if (listp requires)
-                            `(not (member nil (mapcar #'featurep ',requires)))
-                          `(featurep ',requires))
-                       ,@expansion)))))))
+             (if (null requires)
+                 expansion
+               `((if ,(if (listp requires)
+                          `(not (member nil (mapcar #'featurep ',requires)))
+                        `(featurep ',requires))
+                     ,@expansion))))))
         ;; (message "Expanded: %s" (pp-to-string body*))
         body*))))