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

RangHo Lee <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
On 5/11/26 11:27 PM, [email protected] wrote:
> What is your evidence that Emacs is loading the built-in
> (older) version of ‘compat’ instead of the newer version
> that you installed with the package manager?

Pretty simple---I cannot open minibuffer (plus anything that Vertico can 
complete, really) due to `set-local' function being undefined. As far as 
I remember, this function will be introduced in Emacs 31 and older 
versions of Emacs can acccess this function via `compat'.

> Try:
> 
>     1. emacs -Q
>     2. C-h v load-path RET
>        Confirm that ‘load-path’ contains only the Emacs
>        predefined directories.
>     3. M-x package-initialize RET
>     4. C-h v load-path RET
>        Confirm that ‘load-path’ contains the directories of
>        your installed packages before the predefined
>        directories
>     5. Perform whatever test it is that you are using for
>        ‘compat’.  If Emacs is still failing to find the newer
>        version of ‘compat’, then report your test(s) and
>        results to this mailing list.

Hmm, odd. When I manually run the steps above, Emacs seems to load the 
correct version. But when I load my init.el (which uses `use-package' to 
configure packages, FYI), Emacs suddenly falls back to the built-in version.

Now, I suspect the load order is being messed up. Does `use-package' 
re-arrange the load order based on package dependency?

-- 
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.