Emacs bzr中的最近(几天)更改在使用defadvice
的代码中触发了一个非常奇怪的错误,该错误与以前版本的Emacs一起使用。通常要加载的例如Emacs快照上的建议失败
(defadvice rename-file (around sync-ectags-rename-file (file newname &optional ok-if-already-exists) activate)
"Update ectags for renaming of FILE to NEWNAME."
(ectags-unregister-tag-file file)
ad-do-it
(ectags-register-tag-file newname))
但是评估使用上述C-x C-e
工作正常表达的编译版本,当我得到例如
Debugger entered--Lisp error: (wrong-type-argument symbolp #[(file newname &optional ok-if-already-exists)
...
ad-activate(rename-file nil)
。我试了好几个小时才弄清楚什么是错,但没有运气。在我建议功能的其他几种情况下也会出现类似的问题。
为什么要使用StackOverflow提出有关从源代码控制构建的快照的错误报告? 'M-x report-emacs-bug' – phils
我当然完全同意phils,并补充说我鼓励人们现在使用'emacs-24'分支,以帮助我们修复24.3版本之前的错误。 – Stefan
该错误已在更新的版本中修复。我不会再为这些东西使用stackoverflow。谢谢。啊哈! –