Function: semantic--tag-link-to-buffer

semantic--tag-link-to-buffer is a byte-compiled function defined in tag.el.gz.

Signature

(semantic--tag-link-to-buffer TAG)

Documentation

Convert TAG from using an overlay proxy to using an overlay.

This function is for internal use only.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
(defun semantic--tag-link-to-buffer (tag)
  "Convert TAG from using an overlay proxy to using an overlay.
This function is for internal use only."
  (when (semantic-tag-p tag)
    (let ((o (semantic-tag-overlay tag)))
      (when (and (vectorp o) (= (length o) 2))
        (setq o (make-overlay (aref o 0) (aref o 1) (current-buffer)))
        (semantic--tag-set-overlay tag o)
        (overlay-put o 'semantic tag)
        ;; Clear the :filename property
        (semantic--tag-put-property tag :filename nil))
      ;; Look for a link hook on TAG.
      (semantic--tag-run-hooks tag 'link-hook)
      ;; Fix the sub-tags which contain overlays.
      (semantic--tag-link-list-to-buffer
       (semantic-tag-components-with-overlays tag)))))