Emacs 24 error on startup

人走茶凉 提交于 2019-12-24 02:13:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!