Function: texmathp-match-switch

texmathp-match-switch is an autoloaded and byte-compiled function defined in texmathp.el.

Signature

(texmathp-match-switch BOUND)

Documentation

Search backward for any of the math switches.

Limit searched to BOUND.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/texmathp.el
;;;###autoload
(defun texmathp-match-switch (bound)
  "Search backward for any of the math switches.
Limit searched to BOUND."
  ;; The return value is like ("\\(" . (point)).
  (save-excursion
    (if (re-search-backward texmathp-onoff-regexp bound t)
        (cons (buffer-substring-no-properties (match-beginning 1) (match-end 1))
              (match-beginning 1))
      nil)))