Open khaoos-abominable opened 2 months ago
Now I think that the most optimal solution will be to touch
all *.elc
files after their compilation.
Firstly, it will be more friendly to the load-prefer-newer
setting. If all elc
files are appear newer then their el.gz
counterparts, they will be used for loading. And that is good as it's faster. In the opposite case el.gz
will be constantly (once every session) being uncompressed and then loaded. And the last behavior I witnessed many times having older version of emacs flatpak: every new action in emacs` fresh session was accompanied by uncompressing and loading dozens of libraries. Which was kind of sluggish.
Secondly, there is a package named auto-compile
that helps recompiling outdated libraries on their load and save. I haven't try yet, but I think it will fail when it sees a source el
file which is fresher then it's compiled elc
counterpart and tries to recompile the latter. Because the file system is read only.
So not compressing jka-compr.el
as stated in the subject can be safely ignored in favor of having elc
files newer then corresponding el.gz
files.
The library
jka-compr
is used to load compressed libraries (.el.gz
). When it's itself compressed one can encounter recursive load issue. For example:It's happening on a fresh spacemacs installation (dev branch) due to the lines in `~/.emacs.d/layers/+spacemacs/spacemacs-defaults/config.el
As soon as I comment them out, issue dissapears. It seems that emacs tries to recompile the library
jka-compr
before its load whenload-prefer-newer
is set. As the uncompiled version of the library is a bit fresher (see Modify below):So I believe if you
touch jka-compr.elc
the problem will go away. Or a better option I think is just to not compressjka-compr.el
at all. But you decide. I haven not tried any of them as the application is immutable and I am a newbie to flatpack to hack it around. As for now I've left settingload-prefer-newer
above commented out.