Function: senator-narrow-to-defun

senator-narrow-to-defun is an interactive and byte-compiled function defined in senator.el.gz.

Signature

(senator-narrow-to-defun)

Documentation

Make text outside current defun invisible.

The defun visible is the one that contains point or follows point. Use semantic tags to navigate.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/senator.el.gz
(defun senator-narrow-to-defun ()
  "Make text outside current defun invisible.
The defun visible is the one that contains point or follows point.
Use semantic tags to navigate."
  (interactive)
  (semantic-fetch-tags)
  (save-excursion
    (widen)
    (senator-end-of-defun)
    (let ((end (point)))
      (senator-beginning-of-defun)
      (narrow-to-region (point) end))))