Subject: Re: [PATCH] package.el: Add built-in version check and loaded package marking

From: Stefan Monnier <[email-masked]>
Date: Wed, 19 Mar 2025 10:55:35 -0400

> Package marginalia is installed.
>
>      Status: Installed in ‘marginalia-2.0/’. Delete
>     Version: 2.0
>      Commit: c51fd9e4d4258543e0cd8dedda941789163bec5a
>      ...
> Other versions: 1.8 (installed), 2.0 (gnu, activated), 20250317.1632 (melpa).

IIUC this is a package for which you have two versions installed (1.8
and 2.0), right?

That looks good.

> Package faceup is installed.
>
>      Status: Installed in ‘faceup-20170925.1946/’,
>              shadowing a built-in package (unsigned). Delete
>     Version: 20170925.1946
>      Commit: 6c92dad56a133e14e7b27831e1bcf9b3a71ff154
>      ...
> Other versions: 20170925.1946 (melpa, activated), 0.0.6 (built-in).
>
> Note on the package "faceup."  It is interesting that a built-in
> package, when installed via `package-install` and with MELPA added to
> `package-archives`, can update to a version from MELPA (no GNU ELPA
> version is available for this package).

(Non)GNU ELPA is not treated specially, so yes, that's very much expected.

BTW, maybe "Other versions:" should be changed to "All versions:", since
it includes the currently shown version.  We could also try and skip the
currently shown version, but I'm not sure it would be an improvement
(and would require displaying the corresponding info elsewhere).

        Stefan