[英]Emacs 24's python.el + ipython cannot complete module names
I'm using Emacs 24.4.1 on OSX (installed with Homebrew), with the built in python.el
, and Python 3 (also installed with Homebrew), along with IPython 2.3.0. 我在OSX(随Homebrew一起安装)上使用Emacs 24.4.1,以及内置的
python.el
和Python 3(也随Homebrew一起安装)以及IPython 2.3.0。 I have this in my .emacs
: 我的
.emacs
有这个:
(setq
python-shell-interpreter "/usr/local/bin/ipython3"
python-shell-prompt-regexp "In \\[[0-9]+\\]: "
python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: "
python-shell-completion-setup-code
"from IPython.core.completerlib import module_completion"
python-shell-completion-module-string-code
"';'.join(module_completion('''%s'''))\n"
python-shell-completion-string-code
"';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
Everything works correctly when I invoke Mx run-python
, except one thing: the <tab>
-completion of module names doesn't work in the REPL (it says "No match" in the *Messages*
buffer). 当我调用
Mx run-python
,一切都可以正常工作,除了一件事: <tab>
-模块名称的完成在REPL中不起作用(它在*Messages*
缓冲区中显示“ No match”)。 I'm pretty sure it was working with Emacs 24.3, which I upgraded very recently, but I'm not 100% sure. 我很确定它可以与Emacs 24.3一起使用,我最近对其进行了升级,但是我不确定100%。 Anyone has an idea what might cause this, or how I could try to debug it?
任何人都知道是什么原因导致的,或者我怎么尝试调试它?
您可能想要尝试删除上面的大多数设置,因为Emacs-24.4应该非常支持IPython。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.