3

在 emacs 上,我无法跳转到 GTAGS SELECT 缓冲区中的标签。"Buffer is read-only: <buffer *GTAGS SELECT*>"按回车时出现错误。

  • Mac OS X 10.8.1
  • Emacs 24.2
  • gtags GNU GLOBAL 6.2.4(由自制软件安装)
  • gtags.el 3.3(由 package.el 安装)

"C-h k <return>"在 GTAGS SELECT 缓冲区中显示以下消息:

RET (translated from <return>) runs the command newline, which is an
interactive compiled Lisp function in `simple.el'.

It is bound to RET.

(newline &optional ARG)

Insert a newline, and move to left margin of the new line if it's blank.
If `use-hard-newlines' is non-nil, the newline is marked with the
text-property `hard'.
With ARG, insert that many newlines.
Call `auto-fill-function' if the current column number is greater
than the value of `fill-column' and ARG is nil.
4

1 回答 1

1

我不使用 GNU global,但是快速的谷歌搜索提示将 gtags.el 降级到旧版本可能会有所帮助: http ://lists.gnu.org/archive/html/help-global/2011-12/msg00003 .html


编辑:(不能在第一篇文章中添加评论,所以在这里编辑)

正如 Arne 所说,由于某种原因,RET 键没有正确绑定。对于 gtags-select-mode RET 应该绑定到 (gtags-select-tag) 。

于 2012-09-18T06:10:16.527 回答