Function: texmathp--escaped-p

texmathp--escaped-p is a byte-compiled function defined in texmathp.el.

Signature

(texmathp--escaped-p &optional POS)

Documentation

Return t if the character at position POS is escaped.

If POS is omitted, examine the character at point. A character is escaped if it is preceded by an odd number of escape characters, namely "\\" in (La)TeX.

This is a copy of TeX-escaped-p provided by tex.el in order to keep this library usable stand-alone.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.2.0/texmathp.el
(defun texmathp--escaped-p (&optional pos)
  "Return t if the character at position POS is escaped.
If POS is omitted, examine the character at point.
A character is escaped if it is preceded by an odd number of
escape characters, namely \"\\\" in (La)TeX.

This is a copy of `TeX-escaped-p' provided by tex.el in order to keep
this library usable stand-alone."
  (save-excursion
    (when pos (goto-char pos))
    (not (zerop (mod (skip-chars-backward (regexp-quote "\\")) 2)))))