Subject: Re: bug#27253: 25.2; Suggestion: On startup after Emacs version change, package should offer to correct invalid bytecode

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 17 May 2022 21:08:05 +0200

[email-masked] (N. Jackson) writes:

> It would be nice on Emacs startup, if Package could detect
> incompatible byte code in packages compiled with a different
> version of Emacs, and offer to recompile them.
>
> What happens now in this situation is that on startup a message is
> displayed complaining of invalid byte code in the user's init file
> which is slightly confusing, and not very helpful. [Or, at least,
> not as helpful as offering to recompile the offending package.]

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Do you have an example of such a message on startup?

In general, it's not just invalid bytecode that's a problem, but also
other things like macros that have changed definitions (so the old
.elc doesn't quite work right).  But that's hard to detect.

There should perhaps be a command to recompile all installed packages?
Or does that exist somewhere?  (I don't see any such command...)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no