3

On emacs, I can't jump to tags in GTAGS SELECT buffer. I get "Buffer is read-only: <buffer *GTAGS SELECT*>" error when I press return.

  • Mac OS X 10.8.1
  • Emacs 24.2
  • gtags GNU GLOBAL 6.2.4 (installed by homebrew)
  • gtags.el 3.3 (installed by package.el)

"C-h k <return>" in GTAGS SELECT buffer showed the following message:

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 グローバルを使用しませんが、gtags.el を古いバージョンにダウングレードすると役立つかもしれないという簡単な Google 検索のヒントが見つかりました: 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 に答える