On Sun, 2025-02-02 at 14:23 +0200, era wrote: > On Sat, Feb 1, 2025, at 16:51, Henrik Ahlgren wrote: > > With the following configuration I would expect Emacs not to attempt > > upgrading packages installed from Debian to a newer version from MELPA. > > I guess what you are trying to suggest is that there should be a feature to > automatically pin packages installed via apt / dpkg to whichever version you > got from there, and not attempt to update those via the Emacs package manager > unless explicitly selected by the user?
Yes, but I have not idea how it could be implemented. Debian ELPA packages share similarities with built-in packages, leading users to potentially overlook automatic upgrades. If a user chooses to manually upgrade these packages, the 'describe-packages' cmmand should perhaps indicate that they are "shadowing an external package", similar to the behavior displayed for upgraded built-in packages. The function '(package--user-installed-p 'debian-el)' returns nil, indicating that, according to Emacs' perspective, Debian ELPA packages are not considered user-installed packages, and I don't think they should be upgraded without not respecting 'package-archive-priorities'.