Function: semantic-sb-tag-set-buffer

semantic-sb-tag-set-buffer is a byte-compiled function defined in sb.el.gz.

Signature

(semantic-sb-tag-set-buffer TAG)

Documentation

Set the current buffer to something associated with TAG.

use the speedbar-line-file to get this info if needed.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/sb.el.gz
;;; Code:
;;

;;; Buffer setting for correct mode manipulation.
(defun semantic-sb-tag-set-buffer (tag)
  "Set the current buffer to something associated with TAG.
use the `speedbar-line-file' to get this info if needed."
  (if (semantic-tag-buffer tag)
      (set-buffer (semantic-tag-buffer tag))
    (let ((f (speedbar-line-file)))
      (set-buffer (find-file-noselect f)))))