help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "transient-define-suffix" autoload error ?


From: Stefan Monnier
Subject: Re: "transient-define-suffix" autoload error ?
Date: Wed, 19 Jun 2024 17:36:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> What is it that initializes the load-path to include all the packages in
> ~/.emacs.d/elpa -- package-initialize?

Nowadays it's `package-activate-all`, which is normally called by Emacs
between `early-init.el` and `init.el` (i.e. just before loading your
~/.emacs`).

> I think there is something wrong
> with this part of my .emacs with respect to emacs -Q:

With `emacs -Q`, Emacs does not call `package-activate-all`, so before
manually loading your `~/.emacs` you may have to manually call
`package-activate-all`.

>> `.eln` files are indexed by the SHA of the corresponding `.elc`, so if
>> there's no `.elc` of if it has changed, you should never get some left
>> over `.eln` file instead.
>
> I noticed a few packages had been updated and both the old and new
> version had eln files in the cache.

Throwing away old `.eln` files is actually a bit difficult to do
automatically, so they tend to accumulate, indeed.  But Emacs should
never load old `.eln`s because when loading a `.eln` file is looks for
it based on the hash of the `.elc` file it would have loaded instead.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]