当前位置:软件学习 > 其它软件 >>

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-sexp-1(nil) 
  eval-last-sexp(nil) 
  call-interactively(eval-last-sexp 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-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp 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的专栏
补充:软件开发 , 其他 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,