From: Ivan Goncharov Date: Tue, 19 Jan 2016 21:49:27 +0000 (+1300) Subject: Change condition that checks if package has been initialized X-Git-Tag: emacs-29.0.90~1306^2~15^2~319^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c42e3f5669;p=emacs.git Change condition that checks if package has been initialized --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 9eab03dedc3..8a0921aebd0 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -422,8 +422,7 @@ manually updated package." (add-to-list 'package-pinned-packages (cons package archive-name)) (error "Archive '%s' requested for package '%s' is not available." archive-name package)) - (when (and (boundp 'package--initialized) - (not package--initialized)) + (unless (bound-and-true-p package--initialized) (package-initialize t)))) (defun use-package-handler/:pin (name keyword archive-name rest state)