I updated my Emacs from 25 to 28.1 version (as part of OS update), and now on startup there is an error
Symbol's value as variable is void: kill-region
as well as a lot of comp
warnings. On similar machine same .emacs.d
works perfectly, but native compilation is disabled there.
After init.el
fails to load, I can call kill-region
in scratch and it works.
I found where this error comes from (.emacs.d/core/prelude-editor.el
), but if I comment out offending line ((crux-with-region-or-line kill-region)
), other errors comes up. So I believe there is some problem with native compilation. I planning to try compile Emacs from sources without native compilation to test that theory.
UPD. Error happening only on second start of Emacs (or rather when there is no compiled .elc files).