Function: semantic-tag-file-name
semantic-tag-file-name is a byte-compiled function defined in
tag.el.gz.
Signature
(semantic-tag-file-name TAG)
Documentation
Return the name of the file from which TAG originated.
Return nil if that information can't be obtained. If TAG is from a loaded buffer, then that buffer's filename is used. If TAG is unlinked, but has a :filename property, then that is used.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
(defun semantic-tag-file-name (tag)
"Return the name of the file from which TAG originated.
Return nil if that information can't be obtained.
If TAG is from a loaded buffer, then that buffer's filename is used.
If TAG is unlinked, but has a :filename property, then that is used."
(let ((buffer (semantic-tag-in-buffer-p tag)))
(if buffer
(buffer-file-name buffer)
(semantic--tag-get-property tag :filename))))