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