当我启动 python-shell(或者甚至只是从 Mx shell 启动 python)时,Emacs 会给出预期的提示:
bash-3.2$ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
但是当我在提示符下键入内容并按 RET 时,光标会向下移动一行,但不会执行命令。我可以让子进程响应的唯一命令是像 CC Cc 这样的中断。中断后,会出现另一个提示 (>>>),我可以使用 Mn 和 Mp 导航我之前“输入”的行。
>>> test
hmmm, definitely pressed enter there
C-c C-c
KeyboardInterrupt
>>>
奇怪的是,这发生在 Aquaemacs 和 emacs -nw 中。我试过移动我的 .emacs 和 .emacs.d 文件,行为是一样的。关于可能导致这种情况的任何想法?