Function: semantic-analyze-find-tags-by-prefix

semantic-analyze-find-tags-by-prefix is a byte-compiled function defined in fcn.el.gz.

Signature

(semantic-analyze-find-tags-by-prefix PREFIX)

Documentation

Attempt to find a tag with PREFIX.

This is a wrapper on top of semanticdb, and semantic search functions. Almost all searches use the same arguments.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/analyze/fcn.el.gz
;;; Tag Finding
;;
;; Mechanism for lookup up tags by name.
;;
(defun semantic-analyze-find-tags-by-prefix (prefix)
  ;; @todo - only used in semantic-complete.  Find something better?
  "Attempt to find a tag with PREFIX.
This is a wrapper on top of semanticdb, and semantic search functions.
Almost all searches use the same arguments."
  (if (and (fboundp 'semanticdb-minor-mode-p)
           (semanticdb-minor-mode-p))
      ;; Search the database & concatenate all matches together.
      (semanticdb-strip-find-results
       (semanticdb-find-tags-for-completion prefix)
       'name)
    ;; Search just this file because there is no DB available.
    (semantic-find-tags-for-completion
     prefix (current-buffer))))