Function: tex-next-unmatched-end
tex-next-unmatched-end is a byte-compiled function defined in
tex-mode.el.gz.
Signature
(tex-next-unmatched-end)
Documentation
Leave point at the end of the next \end that is unmatched.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defun tex-next-unmatched-end ()
"Leave point at the end of the next `\\end' that is unmatched."
(while (and (tex-search-noncomment
(re-search-forward "\\\\\\(begin\\|end\\)\\s *{[^}]+}"))
(save-excursion (goto-char (match-beginning 0))
(looking-at "\\\\begin")))
(tex-next-unmatched-end)))