Function: semantic-beginning-of-context-texinfo-mode

semantic-beginning-of-context-texinfo-mode is a byte-compiled function defined in texi.el.gz.

Signature

(semantic-beginning-of-context-texinfo-mode &optional POINT)

Documentation

Move to the beginning of the context surrounding POINT.

Override semantic-beginning-of-context in texinfo-mode buffers.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/texi.el.gz
(define-mode-local-override semantic-beginning-of-context texinfo-mode (&optional point)
  "Move to the beginning of the context surrounding POINT."
  (if (semantic-up-context point)
      ;; If we can't go up, we can't do this either.
      t
    ;; We moved, so now we need to skip into whatever this thing is.
    (forward-word-strictly 1) ;; skip the command
    (if (looking-at "\\s-*{")
	;; In a short command.  Go in.
	(down-list 1)
      ;; An environment.  Go to the next line.
      (end-of-line)
      (forward-char 1))
    nil))