Function: semantic-texi-find-documentation

semantic-texi-find-documentation is a byte-compiled function defined in texi.el.gz.

Signature

(semantic-texi-find-documentation NAME &optional TYPE)

Documentation

Find the function or variable NAME of TYPE in the texinfo source.

NAME is a string representing some functional symbol. TYPE is a string, such as "variable" or "Command" used to find the correct definition in case NAME qualifies as several things. When this function exists, POINT is at the definition. If the doc was not found, an error is thrown. Note: TYPE not yet implemented.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/texi.el.gz
;; Turns out this might not be useful.
;; Delete later if that is true.
(defun semantic-texi-find-documentation (name &optional _type)
  "Find the function or variable NAME of TYPE in the texinfo source.
NAME is a string representing some functional symbol.
TYPE is a string, such as \"variable\" or \"Command\" used to find
the correct definition in case NAME qualifies as several things.
When this function exists, POINT is at the definition.
If the doc was not found, an error is thrown.
Note: TYPE not yet implemented."
  (let ((f (semantic-texi-associated-files))
	stream match)
    (while (and f (not match))
      (unless stream
	(with-current-buffer (find-file-noselect (car f))
	  (setq stream (semantic-fetch-tags))))
      (setq match (semantic-find-first-tag-by-name name stream))
      (when match
	(set-buffer (semantic-tag-buffer match))
	(goto-char (semantic-tag-start match)))
      (setq f (cdr f)))))