Function: semantic-narrow-to-context
semantic-narrow-to-context is a byte-compiled function defined in
ctxt.el.gz.
Signature
(semantic-narrow-to-context)
Documentation
Narrow the buffer to the extent of the current context.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/ctxt.el.gz
(defun semantic-narrow-to-context ()
"Narrow the buffer to the extent of the current context."
(let (b e)
(save-excursion
(if (semantic-beginning-of-context)
nil
(setq b (point))))
(save-excursion
(if (semantic-end-of-context)
nil
(setq e (point))))
(if (and b e) (narrow-to-region b e))))