summaryrefslogtreecommitdiff
path: root/helm-elisp-package.el
diff options
context:
space:
mode:
Diffstat (limited to 'helm-elisp-package.el')
-rw-r--r--helm-elisp-package.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/helm-elisp-package.el b/helm-elisp-package.el
index 615bddf0..b3ee3272 100644
--- a/helm-elisp-package.el
+++ b/helm-elisp-package.el
@@ -51,6 +51,11 @@
(declare-function async-byte-recompile-directory "ext:async-bytecomp.el")
(defun helm-el-package--init ()
+ ;; In emacs-27 package-show-package-list returns an empty buffer
+ ;; until package-initialize have been called.
+ (unless (or package--initialized
+ (null (boundp 'package-quickstart)))
+ (package-initialize))
(let (package-menu-async
(inhibit-read-only t))
(when (null package-alist)