问题
I have been using emacs snapshot for a while now but recently it has been crashing a lot. So I switched to Emacs 24. But once I installed it and started it up it started showing error and wouldn't load anything in my init.el
when I ran it in debug mode, I got this.
Debugger entered--Lisp error: (void-function package--description-file)
(package--description-file pkg-dir)
(expand-file-name (package--description-file pkg-dir) pkg-dir)
The full trace is here.
Any help in fixing this or understanding the trackback is appreciated.
回答1:
I'll hazard a guess that you have some byte-compiled .elc files from your usage of the snapshot version, which are getting called. Or even .el files, I guess.
My presumption is that package--description-file
function exists in the snapshot version, as it's not in the stable Emacs 24.3 release (which is why you're getting the error), and thus somehow you're evaluating code from the snapshot release.
来源:https://stackoverflow.com/questions/19000505/emacs-24-error-on-startup