ELisp编程三:理解错误信息
运行一句list
[plain]
(this is an unquoted list)
(this is an unquoted list)
Emacs(版本22之后)会打开一额个*Backtrace*的buffer,里面显示:
[plain]
Debugger entered--Lisp error: (void-function this)
(this is an unquoted list)
eval((this is an unquoted list))
eval-last-易做图p-1(nil)
eval-last-易做图p(nil)
call-interactively(eval-last-易做图p nil nil)
recursive-edit()
byte-code("\306 ....
Debugger entered--Lisp error: (void-function this)
(this is an unquoted list)
eval((this is an unquoted list))
eval-last-易做图p-1(nil)
eval-last-易做图p(nil)
call-interactively(eval-last-易做图p nil nil)
recursive-edit()
byte-code("\306 ....
第一行显示Emacs将list里面的第一个单词this理解成函数,结果没有找到这个函数,因此报错:void-function
按下q键可以关闭*Backtrace*buffer。
网上流传的中文Emacs向导电子书里面的内容是关于老版本Emacs的,报错信息有点不一样:
Symbol's function definition is void: this
摘自 sheismylife的专栏
补充:软件开发 , 其他 ,