Function: semantic-symref
semantic-symref is an autoloaded, interactive and byte-compiled
function defined in list.el.gz.
Signature
(semantic-symref)
Documentation
Find references to the current tag.
This command uses the currently configured references tool within the
current project to find references to the current tag. The
references are organized by file and the name of the function
they are used in.
Display the references in semantic-symref-results-mode.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/symref/list.el.gz
;;; Code:
;;;###autoload
(defun semantic-symref ()
"Find references to the current tag.
This command uses the currently configured references tool within the
current project to find references to the current tag. The
references are organized by file and the name of the function
they are used in.
Display the references in `semantic-symref-results-mode'."
(interactive)
(semantic-fetch-tags)
(let ((ct (semantic-current-tag)))
;; Must have a tag...
(when (not ct) (error "Place cursor inside tag to be searched for"))
;; Check with user.
(when (not (y-or-n-p (format "Find references for %s? "
(semantic-tag-name ct))))
(error "Quit"))
;; Gather results and tags
(message "Gathering References...")
(let* ((name (semantic-tag-name ct))
(res (semantic-symref-find-references-by-name name)))
(semantic-symref-produce-list-on-results res name))))