符号的函数定义为空:声明函数

3

首次接触emacs。在OSX上使用GNU Emacs 22.1.1版本。 按照说明安装了evil插件,结果出现以下问题:

Symbol's function definition is void: declare-function

emacs --debug-init gives:

Debugger entered--Lisp error: (void-function declare-function)  
  (declare-function evil-visual-state-p "evil-visual")  
  eval-buffer(#<buffer  *load*<3>> nil "/Users/rahul/.emacs.d  /evil/evil-repeat.el" nil t)  ; Reading at buffer pos$  
  load-with-code-conversion("/Users/rahul/.emacs.d/evil/evil-  repeat.el" "/Users/rahul/.emacs.d/evil/evil-repeat.el$  
  require(evil-repeat)  
  eval-buffer(#<buffer  *load*<2>> nil "/Users/rahul/.emacs.d  /evil/evil.el" nil t)  ; Reading at buffer position 1$  
  load-with-code-conversion("/Users/rahul/.emacs.d/evil/evil.el"   "/Users/rahul/.emacs.d/evil/evil.el" nil t)  
  require(evil)  
  eval-buffer(#<buffer  *load*> nil "/Users/rahul/.emacs" nil t)    ; Reading at buffer position 122  
  load-with-code-conversion("/Users/rahul/.emacs"   
"/Users/rahul/.emacs" t t)  
  load("~/.emacs" t t)  
  #[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\31$
  command-line()
  normal-top-level()

我的.emacs文件包括:

;;; Emacs Load Path  
(setq load-path (cons "~/bin" load-path))  

(add-to-list 'load-path "~/.emacs.d/evil")  
(require 'evil)    
(evil-mode 1)  
(require 'undo-tree)    
1个回答

12

Emacs 22.1现在已经过时了(中期2007年发布)。你需要安装最新的23.x或最新的24.x预发布版本,可以从http://emacsformacosx.com/下载。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接