Function: semantic-decoration-include-visit
semantic-decoration-include-visit is an autoloaded, interactive and
byte-compiled function defined in include.el.gz.
Signature
(semantic-decoration-include-visit)
Documentation
Visit the included file at point.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/decorate/include.el.gz
;;;###autoload
(defun semantic-decoration-include-visit ()
"Visit the included file at point."
(interactive)
(let ((tag (semantic-current-tag)))
(unless (eq (semantic-tag-class tag) 'include)
(error "Point is not on an include tag"))
(let ((file (semantic-dependency-tag-file tag)))
(cond
((or (not file) (not (file-exists-p file)))
(error "Could not location include %s"
(semantic-tag-name tag)))
((get-file-buffer file)
(pop-to-buffer-same-window (get-file-buffer file)))
((stringp file)
(find-file file))
))))