Function: tex-last-unended-begin

tex-last-unended-begin is a byte-compiled function defined in tex-mode.el.gz.

Signature

(tex-last-unended-begin)

Documentation

Leave point at the beginning of the last \begin{...} that is unended.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defun tex-last-unended-begin ()
  "Leave point at the beginning of the last `\\begin{...}' that is unended."
  (condition-case nil
      (while (and (tex-search-noncomment
		   (re-search-backward "\\\\\\(begin\\|end\\)\\s *{"))
		  (looking-at "\\\\end"))
	(tex-last-unended-begin))
    (search-failed (error "Couldn't find unended \\begin"))))