【发布时间】:2014-05-30 12:03:41
【问题描述】:
函数ido-goto-symbol 在emacs python mode 中运行时,会显示消息No items suitable for an index found in this buffer。如何让ido-goto-symbol 在python-mode 中工作,以便列出python 文件中存在的函数和类?
【问题讨论】:
-
它确实对我有用。我从这里获取了该功能:wikemacs.org/index.php/Imenu 你从哪里获取的?
-
我是从emacs wiki上拿的,但是两个功能是一样的。
-
我观察到
ido-goto-symbol函数在 python 模式下的emacs 23下不起作用(例如,在 c-mode 或 html-mode 下运行良好),但在emacs 24.2下工作python模式也是如此。我认为还有其他一些基本问题。我使用 -q 选项启动了 emacs 23,以便不加载 ido-goto-symbol 函数。尝试命令M-x imenu RET仍然会出现同样的错误。
标签: python emacs python-mode ido