Function: semantic-up-context
semantic-up-context is a byte-compiled function defined in ctxt.el.gz.
Signature
(semantic-up-context &optional POINT BOUNDS-TYPE)
Documentation
Move point up one context from POINT.
Return non-nil if there are no more context levels.
Overloaded functions using up-context take no parameters.
BOUNDS-TYPE is a symbol representing a tag class to restrict
movement to. If this is nil, function is used.
This will find the smallest tag of that class (function, variable,
type, etc) and make sure non-nil is returned if you cannot
go up past the bounds of that tag.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/ctxt.el.gz
(define-overloadable-function semantic-up-context (&optional point bounds-type)
"Move point up one context from POINT.
Return non-nil if there are no more context levels.
Overloaded functions using `up-context' take no parameters.
BOUNDS-TYPE is a symbol representing a tag class to restrict
movement to. If this is nil, `function' is used.
This will find the smallest tag of that class (function, variable,
type, etc) and make sure non-nil is returned if you cannot
go up past the bounds of that tag."
(require 'semantic/find)
(if point (goto-char point))
(let ((nar (semantic-current-tag-of-class (or bounds-type 'function))))
(if nar
(semantic-with-buffer-narrowed-to-tag nar (:override-with-args ()))
(when bounds-type
(error "No context of type %s to advance in" bounds-type))
(:override-with-args ()))))