Function: semantic-brute-find-first-tag-by-function
semantic-brute-find-first-tag-by-function is a byte-compiled function
defined in find.el.gz.
Signature
(semantic-brute-find-first-tag-by-function FUNCTION STREAMORBUFFER &optional SEARCH-PARTS SEARCH-INCLUDES)
Documentation
Find the first tag which FUNCTION match within STREAMORBUFFER.
FUNCTION must return non-nil if an element of STREAM will be included in the new list.
The following parameters were never implemented.
If optional argument SEARCH-PARTS, all sub-parts of tags are searched.
The overloadable function semantic-tag-components is used for
searching.
If SEARCH-INCLUDES is non-nil, then all include files are also
searched for matches.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/find.el.gz
(defun semantic-brute-find-first-tag-by-function
(function streamorbuffer &optional _search-parts _search-includes)
"Find the first tag which FUNCTION match within STREAMORBUFFER.
FUNCTION must return non-nil if an element of STREAM will be included
in the new list.
The following parameters were never implemented.
If optional argument SEARCH-PARTS, all sub-parts of tags are searched.
The overloadable function `semantic-tag-components' is used for
searching.
If SEARCH-INCLUDES is non-nil, then all include files are also
searched for matches."
(let ((stream (semantic-something-to-tag-table streamorbuffer))
(found nil)
(case-fold-search semantic-case-fold))
(while (and (not found) stream)
(if (funcall function (car stream))
(setq found (car stream)))
(setq stream (cdr stream)))
found))