Function: semantic-find-tags-for-completion
semantic-find-tags-for-completion is a macro defined in find.el.gz.
Signature
(semantic-find-tags-for-completion PREFIX &optional TABLE)
Documentation
Find all tags whose name begins with PREFIX in TABLE.
PREFIX is a string.
TABLE is a tag table. See semantic-something-to-tag-table.
While it would be nice to use try-completion or all-completions,
those functions do not return the tags, only a string.
Uses compare-strings for fast comparison.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/find.el.gz
(defmacro semantic-find-tags-for-completion (prefix &optional table)
"Find all tags whose name begins with PREFIX in TABLE.
PREFIX is a string.
TABLE is a tag table. See `semantic-something-to-tag-table'.
While it would be nice to use `try-completion' or `all-completions',
those functions do not return the tags, only a string.
Uses `compare-strings' for fast comparison."
`(let ((l (length ,prefix)))
(semantic--find-tags-by-macro
(eq (compare-strings ,prefix 0 nil
(semantic-tag-name (car tags)) 0 l
semantic-case-fold)
t)
,table)))