Function: semantic-symref-regexp

semantic-symref-regexp is an autoloaded, interactive and byte-compiled function defined in list.el.gz.

Signature

(semantic-symref-regexp SYM)

Documentation

Find references to the a symbol regexp SYM.

This command uses the currently configured references tool within the current project to find references to the input SYM. The references are the 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
;;;###autoload
(defun semantic-symref-regexp (sym)
  "Find references to the a symbol regexp SYM.
This command uses the currently configured references tool within the
current project to find references to the input SYM.  The
references are the organized by file and the name of the function
they are used in.
Display the references in `semantic-symref-results-mode'."
  (interactive (list (let* ((tag (semantic-current-tag))
                            (default (when tag
                                       (regexp-quote
                                        (semantic-tag-name tag)))))
                       (read-string (format-prompt " Symrefs for" default)
                                    nil nil default))))
  ;; FIXME: Shouldn't the input be in Emacs regexp format, for
  ;; consistency? Converting it to extended is not hard.
  (semantic-fetch-tags)
  (message "Gathering References...")
  ;; Gather results and tags
  (let ((res (semantic-symref-find-text sym)))
    (semantic-symref-produce-list-on-results res sym)))