Emacsで関数の定義を見つけるためにcscopeを使用した後、前の位置に戻る方法は? いくつかの関数の定義を知った後、次のコードを読み続けたいので。
1 に答える
1
cscopeを呼び出す前に、次のことを行う必要があります:(ring-insert find-tag-marker-ring(point-marker))。
私はこれを持っています:
(defun mmc-find-tag(&optional prefix)
"union of `find-tag' alternatives. decides upon major-mode"
(interactive "P")
(if (and (boundp 'cscope-minor-mode)
cscope-minor-mode)
(progn
(ring-insert find-tag-marker-ring (point-marker))
;; (push-tag-mark)
(setq cscope-display-cscope-buffer prefix)
(call-interactively
(if prefix
'cscope-find-this-symbol
'cscope-find-global-definition-no-prompting
)))
(call-interactively 'find-tag)))
(substitute-key-definition 'find-tag 'mmc-find-tag global-map)
于 2012-08-10T08:48:35.383 に答える