我可以在23.1,23.4下使用我的样式文件,但在我将Emacs更新为24.1后,我无法使用旧样式文件.例如,我的一个样式文件是color-theme-arjen.el.链接在这里:
https://github.com/credmp/color-theme-arjen/blob/master/color-theme-arjen.el
在我的elisp文件中,我使用以下代码加载颜色主题:
(加载文件"〜/ emacs/site-lisp/color-theme/master_color-theme-arjen.el")(color-theme-arjen)我不知道为什么颜色主题在Emacs 23.1和23.4下工作,但在Emacs 24.1下不起作用.
当Emacs正在加载文件时,Emacs会出现以下错误:
符号的函数定义无效:plist-to-alist如果我取消注释上面的代码并且不加载样式文件,则错误将被取消.
有谁知道为什么会这样?或者我该如何调试它?
wen*_*yan 21
是的,我也发现了这个错误.似乎Emacs 24没有'plist-to-alist'功能.所以你可能应该自己写一下.这是我的.把这个功能放在你的dot-emacs文件中然后就可以了.
(defun plist-to-alist (the-plist)
(defun get-tuple-from-plist (the-plist)
(when the-plist
(cons (car the-plist) (cadr the-plist))))
(let ((alist '()))
(while the-plist
(add-to-list 'alist (get-tuple-from-plist the-plist))
(setq the-plist (cddr the-plist)))
alist))
Run Code Online (Sandbox Code Playgroud)
希望能帮助到你 : )
归档时间: |
|
查看次数: |
2493 次 |
最近记录: |