summaryrefslogtreecommitdiff
path: root/helm-elisp-package.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-31 11:38:03 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-31 11:38:03 +0200
commitec311100e1894ea493afbd4fa28a521668e2fb70 (patch)
tree4de6c01d65a20a1f394117833f9b8efb3d6f5c61 /helm-elisp-package.el
parent2c5056a5df08c891b91b61b19325a4b820bd334b (diff)
Use package-desc-name to fit with all emacs
* helm-elisp-package.el (helm-el-package-uninstall-1): Do it.
Diffstat (limited to 'helm-elisp-package.el')
-rw-r--r--helm-elisp-package.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/helm-elisp-package.el b/helm-elisp-package.el
index e95f6c9e..f446e280 100644
--- a/helm-elisp-package.el
+++ b/helm-elisp-package.el
@@ -160,8 +160,9 @@
(package-version-join (cdr id)))))
(error (message (cadr err))))
;; Seems like package-descs are symbols with props instead of
- ;; vectors in emacs-27.
- unless (assoc (if (sequencep id) (elt id 1) id) package-alist)
+ ;; vectors in emacs-27, use package-desc-name to ensure
+ ;; compatibility in all emacs versions.
+ unless (assoc (package-desc-name id) package-alist)
collect (if (fboundp 'package-desc-full-name)
id
(cons (symbol-name (car id))