Function: tex-next-unmatched-eparen
tex-next-unmatched-eparen is a byte-compiled function defined in
tex-mode.el.gz.
Signature
(tex-next-unmatched-eparen OTYPE)
Documentation
Leave point after the next unmatched escaped closing parenthesis.
The string OTYPE is an opening parenthesis type: (, {, or [.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defun tex-next-unmatched-eparen (otype)
"Leave point after the next unmatched escaped closing parenthesis.
The string OTYPE is an opening parenthesis type: `(', `{', or `['."
(condition-case nil
(let ((ctype (char-to-string (cdr (aref (syntax-table)
(string-to-char otype))))))
(while (and (tex-search-noncomment
(re-search-forward (format "\\\\[%s%s]" ctype otype)))
(save-excursion
(goto-char (match-beginning 0))
(looking-at (format "\\\\%s" (regexp-quote otype)))))
(tex-next-unmatched-eparen otype)))
(wrong-type-argument (error "Unknown opening parenthesis type: %s" otype))
(search-failed (error "Couldn't find closing escaped paren"))))