Function: semantic-narrow-to-tag

semantic-narrow-to-tag is an interactive and byte-compiled function defined in tag.el.gz.

Signature

(semantic-narrow-to-tag &optional TAG)

Documentation

Narrow to the region specified by the bounds of TAG.

See semantic-tag-bounds.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
;;; Tag Region
;;
;; A Tag represents a region in a buffer.  You can narrow to that tag.
;;
(defun semantic-narrow-to-tag (&optional tag)
  "Narrow to the region specified by the bounds of TAG.
See `semantic-tag-bounds'."
  (interactive)
  (if (not tag) (setq tag (semantic-current-tag)))
  (narrow-to-region (semantic-tag-start tag)
		    (semantic-tag-end tag)))