all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 16313@debbugs.gnu.org
Cc: bzg@altern.org
Subject: bug#16313: 24.3; package-delete does not update package-alist
Date: Tue, 07 Jan 2014 17:08:36 -0500	[thread overview]
Message-ID: <loppo3qwbf.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <85mwjf5138.fsf@stephe-leake.org>

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	other threads:[~2014-01-07 22:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-01 12:38 bug#16313: 24.3; package-delete does not update package-alist stephen_leake
2014-01-01 21:12 ` bug#16313: additional info Stephen Leake
2014-01-03  4:20 ` bug#16313: 24.3; package-delete does not update package-alist Stefan Monnier
2014-01-07 10:57   ` Bastien Guerry
2014-01-07 22:08     ` Glenn Morris [this message]
2014-01-07 23:08       ` Bastien
2014-01-08  5:10         ` Glenn Morris
2014-01-08  8:41           ` Bastien
2014-01-08 11:35           ` Bastien
2014-01-08  8:38       ` Bastien
2014-01-08 14:08         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loppo3qwbf.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=16313@debbugs.gnu.org \
    --cc=bzg@altern.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.