在我的情况下,我在第一行进入ipython缓冲区时收到错误。这似乎是python-mode 6.0.4中的known bug。
答案 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中。最新版本