[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ELPA and built-in packages
From: |
Stefan Monnier |
Subject: |
Re: ELPA and built-in packages |
Date: |
Mon, 01 Nov 2021 13:50:01 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen [2021-11-01 14:35:41] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> It should, yes.
> Cool; I was having some problems here when working on a built-in package
> that I also had installed from ELPA, but ---
>> The info is stored in `package--builtin-versions` which is populated
>> from the autoloads information in `lisp/loaddefs.el`, which is
>> generated by `lisp/emacs-lisp/autoload.el`:
> --- so I guess my problem was that I hadn't bumped the version number in
> the built-in version and/or hadn't regenerated the loaddefs?
Could be. Our makefile doesn't automatically refresh
`lisp/loaddefs.el`, IIRC.
IIRC a known problem that can happen is when the package is preloaded
(e.g. `cl-generic`) in which case `autoload.el` skips it altogether,
which is why `cl-generic.el` and `nadvice.el` have an explicit
(push (purecopy '(<PKG> 1 0)) package--builtin-versions)
Of course, there might be other problems,
Stefan