How to make Emacs use ELPA version of `compat'?

RangHo Lee <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Hello, everyone.

First time requesting for help in Emacs mailing list.

I am using Vertico (https://github.com/minad/vertico) for minibuffer 
completion. Recently, a new commit that requires `compat' version 31 
(namely, the `set-local' function) was introduced.

Naturally, I opened up the package list menu, marked `compat' for 
update, and performed upgrade procedure just like other ELPA packages.
(Note that I already have `package-install-upgrade-built-in' set as t.)

However, upon running `restart-emacs', it seems that Emacs is loading 
the built-in version (30.2.9999) even though I installed the newer 
version already.

I've checked the contents of `load-path' and the package menu, but both 
look fine to me. The newer version appears before system elisp 
directory, and the package info page says that `compat' is "installed" 
and "shadowing a built-in package".

To enable the newer version, I need to click the correct version in the 
package info page and re-install.

Is there a way to make Emacs always prefer the version from ELPA?

-- 
RangHo Lee,
Professional procrastinator.

See <https://rangho.me> for more nonsense.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.