EIN on Aquamacs 3.0无法正常工作

时间:2014-01-21 06:09:05

标签: emacs ipython-notebook aquamacs

在终端启动我的iPython Notebook服务器之后,我尝试:

M-x ein:notebooklist-open RET

这会产生以下错误:

defvar: Symbol's value as variable is void: c-mode-syntax-table

(来源:ein documentation

我不知道如何调试/修复此问题。


我刚刚发布了新发布的Aquamacs 3.0,并在安装ein软件包之前安装了所需的软件包(websocket,request,auto-complete)。

Preferences.el包括(可能与Aquamacs 3.0多余):

(require 'cl)
(require 'websocket)
(require 'request)
(require 'ein)

我在小牛队,已经使用emacs大约2年了。

修改

为了完整起见,应lunaryorn的要求:

Debugger entered--Lisp error: (void-variable c-mode-syntax-table)
  byte-code("\302!\303\304\305  #\210\303\306\305   #\210   )\207" [c-mode-syntax-table table make-syntax-table modify-syntax-entry 46 "w" 95] 4)
  (defvar ein:dotty-syntax-table (byte-code "\302!\303\304\305  #\210\303\306\305   #\210   )\207" [c-mode-syntax-table table make-syntax-table modify-syntax-entry 46 "w" 95] 4) ("/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-utils.elc" . 2990))
  require(ein-utils)
  eval-buffer(#<buffer  *load*-545884> nil "/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-core.el" nil t)  ; Reading at buffer position 1143
  load-with-code-conversion("/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-core.el" "/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-core.el" nil t)
  require(ein-core)
  eval-buffer(#<buffer  *load*> nil "/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-notebooklist.el" nil t)  ; Reading at buffer position 952
  load-with-code-conversion("/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-notebooklist.el" "/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/ein-notebooklist.el" nil t)
  autoload-do-load((autoload "ein-notebooklist" "Open notebook list buffer.\n\n(fn &optional URL-OR-PORT NO-POPUP)" t nil) ein:notebooklist-open)
  command-execute(ein:notebooklist-open record)
  execute-extended-command(nil "ein:notebooklist-open")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

1 个答案:

答案 0 :(得分:2)

这是一个猜测,c-mode-syntax-tablecc-mode.el中定义,似乎ein在其代码的某个地方使用了这个,你可以M-: (require 'cc-mode) RET再试一次。

相关问题