Function: semantic-find-tag-for-completion
semantic-find-tag-for-completion is a byte-compiled function defined
in util.el.gz.
Signature
(semantic-find-tag-for-completion PREFIX)
Documentation
Find all tags with name starting with PREFIX.
This uses semanticdb when available.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/util.el.gz
(defun semantic-find-tag-for-completion (prefix)
"Find all tags with name starting with PREFIX.
This uses `semanticdb' when available."
(let (result ctxt)
;; Try the Semantic analyzer
(condition-case nil
(and (featurep 'semantic/analyze)
(setq ctxt (semantic-analyze-current-context))
(setq result (semantic-analyze-possible-completions ctxt)))
(error nil))
(or result
;; If the analyzer fails, then go into boring completion.
(if (and (featurep 'semantic/db)
(semanticdb-minor-mode-p)
(require 'semantic/db-find))
(semanticdb-fast-strip-find-results
(semanticdb-deep-find-tags-for-completion prefix))
(semantic-deep-find-tags-for-completion prefix (current-buffer))))))