From: Bastien Guerry Date: Tue, 7 Jan 2014 10:58:03 +0000 (+0100) Subject: emacs-lisp/package.el (package-delete): Delete package completely X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~33 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b6b4f204c819569734c092532d56da85eef503b;p=emacs.git emacs-lisp/package.el (package-delete): Delete package completely * emacs-lisp/package.el (package-delete): Also delete the package name from `package-alist', not its description only. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9f0a7e5c715..99287618548 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-01-07 Bastien Guerry + + * emacs-lisp/package.el (package-delete): Also delete the package + name from `package-alist', not its description only. + 2014-01-07 Glenn Morris * help.el (view-external-packages): diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 39fbc55ad4f..15dba461d2d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1231,7 +1231,7 @@ The file can either be a tar file or an Emacs Lisp file." (delete-file signed-file))) ;; Update package-alist. (let* ((name (package-desc-name pkg-desc))) - (delete pkg-desc (assq name package-alist))) + (delete (delete pkg-desc (assq name package-alist)) package-alist)) (message "Package `%s' deleted." (package-desc-full-name pkg-desc))))) (defun package-archive-base (desc)