unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eduardo Ochs <eduardoochs@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: How do package.el handles "duplicate packages"?
Date: Thu, 24 Nov 2022 20:43:00 -0300	[thread overview]
Message-ID: <CADs++6gHJEvtfc60PHOCwcjr-L0xWaiYyb7vi8PcnEJpQq+KLw@mail.gmail.com> (raw)

Hi list,

where can I find information on how package.el handles packages that
are listed twice in the buffer that `M-x list-packages' creates? The
file package.el is very big and I find its code hard to follow, so any
hints like "read the commments in the places foo and bar" would help a
lot...

Here is an example (to make this question more interesting)...
"afternoon-theme" is one of these packages, and if I define these two
functions

  (defun my-p1 () (interactive) (setq my-p1 (tabulated-list-get-id)))
  (defun my-p2 () (interactive) (setq my-p2 (tabulated-list-get-id)))

and I run `M-x my-p1' on the line with the first "afternoon-theme" and
`M-x my-p2' on the second, then I can inspect the variables my-p1 and
my-p2 with:

  (describe-variable 'my-p1)
  (describe-variable 'my-p2)

One of them has these entries,

  :version (0 1)
  :archive "nongnu"

and the other has these:

  :version (20140104 1859)
  :archive "melpa"

and if I run this,

  (setq my-ps
    (cl-loop for (name pdesc) in package-archive-contents
             if (eq name 'afternoon-theme)
             collect (list name pdesc)))

  (describe-variable 'my-ps)

I see only one entry in package-archive-contents - the one in MELPA...

  Thanks in advance,
    Eduardo Ochs
    http://angg.twu.net/#eev
    http://angg.twu.net/eepitch.html



             reply	other threads:[~2022-11-24 23:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24 23:43 Eduardo Ochs [this message]
2022-11-25  3:04 ` How do package.el handles "duplicate packages"? Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-25  3:58   ` Eduardo Ochs
2022-11-25  6:13     ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CADs++6gHJEvtfc60PHOCwcjr-L0xWaiYyb7vi8PcnEJpQq+KLw@mail.gmail.com \
    --to=eduardoochs@gmail.com \
    --cc=help-gnu-emacs@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).