【发布时间】:2012-02-24 16:16:03
【问题描述】:
我正在尝试在 Emacs 中将 Ropemacs 与 AutoComplete 一起使用,但我不断收到调试器错误:
Debugger entered--Lisp error: (void-function rope-completions)
(rope-completions)
eval((rope-completions))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
符号rope-completions 没有来自 C-h S 的文档。它只出现一次,在自动完成配置中。我已经下载了最新的ropemacs、ropemode、pymacs、python-rope,并且可能破坏了我拥有的任何 apt 系统一致性。
当我从配置文件中删除此功能时,自动完成会在尝试完成时将光标变为红色。我在我的系统上的任何地方都找不到对这个函数的引用。
自动完成在 Lisp 中非常适合我。如何让自动完成功能和 Rope 协同工作以在 Emacs 中为 Python 提供自动完成功能?
编辑:我无法通过 C-h f 看到绳索完成的定义。这是我的 Pymacs 缓冲区的输出:
<23 (version "0.24-beta2")
>45 eval pymacs_load_helper("ropemacs", "rope-")
<278 (return '(progn (pymacs-defuns '(0 rope--OldProgress nil 1 rope--LispProgress nil 2 rope-LispUtils nil 3 rope-message nil 4 rope--lisp-name nil 5 rope--load-ropemacs nil 6 rope--started-from-pymacs nil 7 rope-occurrences-goto "" 8 rope-occurrences-next "")) (pymacs-python 9)))
>45 eval pymacs_load_helper("ropemacs", "rope-")
<288 (return '(progn (pymacs-defuns '(10 rope--OldProgress nil 11 rope--LispProgress nil 12 rope-LispUtils nil 13 rope-message nil 14 rope--lisp-name nil 15 rope--load-ropemacs nil 16 rope--started-from-pymacs nil 17 rope-occurrences-goto "" 18 rope-occurrences-next "")) (pymacs-python 19)))
>51 eval free_python(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19)
<13 (return nil)
>45 eval pymacs_load_helper("ropemacs", "rope-")
<279 (return '(progn (pymacs-defuns '(19 rope--OldProgress nil 9 rope--LispProgress nil 8 rope-LispUtils nil 7 rope-message nil 6 rope--lisp-name nil 5 rope--load-ropemacs nil 4 rope--started-from-pymacs nil 3 rope-occurrences-goto "" 2 rope-occurrences-next "")) (pymacs-python 1)))
【问题讨论】:
标签: python emacs autocomplete ropemacs rope