Function: semantic-tag-parent-buffer

semantic-tag-parent-buffer is a byte-compiled function defined in tag-file.el.gz.

Signature

(semantic-tag-parent-buffer PARENT)

Documentation

Return the buffer in which a tag can be found, knowing its PARENT.

Implementations

(semantic-tag-parent-buffer PARENT) in `semantic/tag-file.el'.

Undocumented

(semantic-tag-parent-buffer (PARENT semanticdb-table)) in `semantic/db.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag-file.el.gz
;;; Code:

;;; Location a TAG came from.
;;

(cl-defgeneric semantic-tag-parent-buffer (parent)
  "Return the buffer in which a tag can be found, knowing its PARENT."
  (cond ((and (semantic-tag-p parent) (semantic-tag-in-buffer-p parent))
	 ;; We have a parent with a buffer, then go there.
	 (semantic-tag-buffer parent))
	((and (semantic-tag-p parent) (semantic-tag-file-name parent))
	 ;; The parent only has a file-name, then
	 ;; find that file, and switch to that buffer.
	 (find-file-noselect (semantic-tag-file-name parent)))))