Function: semantic-tag-buffer
semantic-tag-buffer is a byte-compiled function defined in tag.el.gz.
Signature
(semantic-tag-buffer TAG)
Documentation
Return the buffer TAG resides in.
If TAG has an originating file, read that file into a (maybe new) buffer, and return it. Return nil if there is no buffer for this tag.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
(defun semantic-tag-buffer (tag)
"Return the buffer TAG resides in.
If TAG has an originating file, read that file into a (maybe new)
buffer, and return it.
Return nil if there is no buffer for this tag."
(let ((buff (semantic-tag-in-buffer-p tag)))
(if buff
buff
;; TAG has an originating file, read that file into a buffer, and
;; return it.
(if (semantic--tag-get-property tag :filename)
(save-match-data
(find-file-noselect (semantic--tag-get-property tag :filename)))
;; TAG is not in Emacs right now, no buffer is available.
))))