From: Chunyang Xu Date: Thu, 31 Mar 2016 11:25:48 +0000 (+0800) Subject: Mark package as selected with package-install X-Git-Tag: emacs-29.0.90~1306^2~15^2~298^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3aa6aecb7f26f79ee23bc1984bbb34c91502cb52;p=emacs.git Mark package as selected with package-install Fixes https://github.com/jwiegley/use-package/issues/327 --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 9437c217353..7dba2b5dcf0 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -477,9 +477,7 @@ manually updated package." (if (package-installed-p package) t (if (or (assoc package package-archive-contents) no-refresh) - (if (boundp 'package-selected-packages) - (package-install package t) - (package-install package)) + (package-install package) (progn (package-refresh-contents) (use-package-ensure-elpa package t)))))