In a clean installation of Emacs 26.3 with Spacemacs, I have two glaring bugs that mess up my workflow:
C-c C-x C-aproduces an error:
org-copy-subtree: Invalid function: org-preserve-local-variables. I have also seen this error also when using
org-agendatag filter via
C-c a mfor any tag causes Emacs to hang indefinitely.
It seems that both of these are addressed by explicitly deleting packages in
.emacs.d/elpa, which forces Emacs to reinstall them.
To address 1., run (source):
cd ~/.emacs.d/elpa/ find org*/*.elc -print0 | xargs -0 rm
To address 2., run (source ) :
rm -rf ~/.emacs.d/elpa/*
I’m not an Emacs expert, so it’s not immediately clear to me why this works.
More mysteriously, it seems that the command to solve problem 2. does not solve problem 1.
.elc file a compiled Elisp file, so this seems to force a recompile of
org packages themselves.