RangHo Lee <[email protected]> writes:
>
>> 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?
You might try the following to localize the expression(s)
that is not doing what you expect:
1. Add the expression (locate-library "compat") to the
beginning of your init.el file.
2. After repeating steps 1-5 above, read your init.el
file into a buffer (that is, do *not* load it).
3. Evaluate the (locate-library "compat") expression to
confirm that Emacs is finding the ELPA updated version.
4. Evaluate each of your remaining expressions in your
init.el. After each evaluation, re-evaluate the
(locate-library "compat") expression to see whether its
result has changed. That should help you to locate the
source of the problem (instead of guessing).
If you find that a ‘use-package’ expression is the source of
the problem, then you might be able to use the
Troubleshooting section of the ‘use-package’ user manual:
(info "(use-package) Troubleshooting")
--
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
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.