错误消息:当使用带有python-mode的ipython时,符号作为变量的值为void:erg

时间:2012-02-10 06:41:15

标签: emacs ipython python-mode

在我的情况下,我在第一行进入ipython缓冲区时收到错误。这似乎是python-mode 6.0.4中的known bug

2 个答案:

答案 0 :(得分:1)

我的解决方案是编辑python-mode.el的1565-1566行。

(let ((lastindent (if
                         (py-beginning-of-statement-p)
                         (current-indentation)
                       (progn
-                   (py-down-statement)
-                   (current-indentation)))))
+                   (py-down-statement)
+                   (current-indentation))))
+     erg)

此外,这在6.0.5中已得到修复

答案 1 :(得分:0)

这个bug不应该出现在当前的trunk中。最新版本

http://launchpad.net/python-mode