(require 'bind-key)
(require 'bytecomp)
(require 'cl-lib)
-(eval-when-compile (require 'cl))
-(eval-when-compile (require 'regexp-opt))
+(eval-when-compile
+ (require 'cl)
+ (require 'regexp-opt))
(declare-function package-installed-p "package")
(declare-function package-read-all-archive-contents "package" ())
(if packages
(list
(intern
- (completing-read
- "Select package: "
- packages
- nil
- 'require-match))
+ (completing-read "Select package: "
+ packages nil 'require-match))
:interactive)
(user-error "No packages with deferred installation"))))
(let ((spec (gethash name use-package--deferred-packages)))
(defun use-package-handler/:preface (name keyword arg rest state)
(let ((body (use-package-process-keywords name rest state)))
(use-package-concat
- (unless (null arg)
+ (when arg
`((eval-and-compile ,@arg)))
body)))
(unless (or (null config-body) (equal config-body '(t)))
`((eval-after-load ,(if (symbolp name) `',name name)
',(macroexp-progn config-body))))
- ;; Here we are checking the marker value for deferred
- ;; installation set in `use-package-handler/:ensure'. See also
+
+ ;; Here we are checking the marker value for deferred installation set
+ ;; in `use-package-handler/:ensure'. See also
;; `use-package-handler/:defer-install'.
(when (eq (plist-get state :defer-install) :ensure)
(use-package-install-deferred-package name :config))
+
(use-package--with-elapsed-timer
(format "Loading package %s" name)
(if use-package-expand-minimally