【问题标题】:Ido-goto-symbol command support for emacs python mode对 emacs python 模式的 Ido-goto-symbol 命令支持
【发布时间】:2014-05-30 12:03:41
【问题描述】:

函数ido-goto-symbolemacs python mode 中运行时,会显示消息No items suitable for an index found in this buffer。如何让ido-goto-symbolpython-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


【解决方案1】:

M-x imenu RET 已经提供了该功能。

应该像使用附带的 python.el 一样使用 python-mode.el

检查过

2014-04-21 的 GNU Emacs 24.3.90.1(i686-pc-linux-gnu,GTK+ 版本 3.6.5)

遇到问题从emacs -Q开始

【讨论】:

  • 我以-q 选项启动emacs,因此不会加载ido-goto-symbol 函数。运行M-x imenu RET 仍然会给出相同的错误No items suitable for an index found in this buffer。我正在运行emacs 23。我是否必须安装任何emacs python packages 才能运行该命令?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-02-13
  • 1970-01-01
  • 2012-03-28
  • 1970-01-01
  • 2011-12-23
  • 1970-01-01
相关资源
最近更新 更多