bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16313: 24.3; package-delete does not update package-alist


From: Glenn Morris
Subject: bug#16313: 24.3; package-delete does not update package-alist
Date: Tue, 07 Jan 2014 17:08:36 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Bastien Guerry wrote:

> Still, package-delete did not cleanly delete the package from
> package-alist, only its description.

_Should_ it remove the entire entry? It's not obvious to me, given eg
the way package-installed-p works.

> I pushed a fix to cleanly remove the package occurrence.

-        (delete pkg-desc (assq name package-alist)))
+       (delete (delete pkg-desc (assq name package-alist)) package-alist))

That doesn't work for the first item in the list.
Why not the more obvious

(setq package-alist (delete (assq name package-alist) package-alist))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]