diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-03-31 10:42:58 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-03-31 10:42:58 +0200 |
commit | 2c5056a5df08c891b91b61b19325a4b820bd334b (patch) | |
tree | 1b945e6da69bf4734e965d85ff5bce0695120a05 /helm-elisp-package.el | |
parent | d6286dd3601939b669cfc638b60be19aa07d7a53 (diff) |
Fix deletion of packages in emacs-27
* helm-elisp-package.el (helm-el-package-uninstall-1): Do it.
Diffstat (limited to 'helm-elisp-package.el')
-rw-r--r-- | helm-elisp-package.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helm-elisp-package.el b/helm-elisp-package.el index f7366872..e95f6c9e 100644 --- a/helm-elisp-package.el +++ b/helm-elisp-package.el @@ -159,7 +159,9 @@ (package-delete (symbol-name (car id)) (package-version-join (cdr id))))) (error (message (cadr err)))) - unless (assoc (elt id 1) package-alist) + ;; 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) collect (if (fboundp 'package-desc-full-name) id (cons (symbol-name (car id)) |