【发布时间】:2011-11-04 06:14:26
【问题描述】:
我过去曾在不同的系统中成功使用过 python-mode 的 python-send-buffer(和类似的)。
我不明白为什么我会在这里出错。更糟糕的是,谷歌搜索没有帮助..
下面是我尝试通过 C-c C-r
>>> emacs.eexecfile("/var/folders/qy/qyS-532mGoWXHKmsdumelk+++TI/-Tmp-/py1850AbJ")
File "/var/folders/qy/qyS-532mGoWXHKmsdumelk+++TI/-Tmp-/py1850AbJ", line 1
from math import sqrt
^
SyntaxError: invalid syntax
我的系统是mac snowleopard和emacs 23.3.1,python 2.6.1
http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/125d72278d513bea?pli=1 谈论 ^M 。 我将建议的解决方案添加到我的 .emacs 但没有区别
(add-to-list 'process-coding-system-alist
'("python" cp1251-unix . cp1251-unix))
【问题讨论】: