Function: semantic-sb-token-jump
semantic-sb-token-jump is a byte-compiled function defined in
sb.el.gz.
Signature
(semantic-sb-token-jump TEXT TOKEN INDENT)
Documentation
Jump to the location specified in token.
TEXT TOKEN and INDENT are the details.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/sb.el.gz
(defun semantic-sb-token-jump (_text token indent)
"Jump to the location specified in token.
TEXT TOKEN and INDENT are the details."
(let ((file
(or (speedbar-line-directory indent)
;; If speedbar cannot figure this out, extract the filename from
;; the token. True for Analysis mode.
(semantic-tag-file-name token)))
(parent (semantic-sb-detail-parent)))
(let ((f (selected-frame)))
(dframe-select-attached-frame speedbar-frame)
(run-hooks 'speedbar-before-visiting-tag-hook)
(select-frame f))
;; Sometimes FILE may be nil here. If you are debugging a problem
;; when this happens, go back and figure out why FILE is nil and try
;; and fix the source.
(speedbar-find-file-in-frame file)
(save-excursion (speedbar-stealthy-updates))
(semantic-go-to-tag token parent)
(switch-to-buffer (current-buffer))
;; Reset the timer with a new timeout when clicking a file
;; in case the user was navigating directories, we can cancel
;; that other timer.
;; (speedbar-set-timer dframe-update-speed)
;;(recenter)
(dframe-maybee-jump-to-attached-frame)
(run-hooks 'speedbar-visiting-tag-hook)))