Function: LaTeX--after-math-macro-prefix-p

LaTeX--after-math-macro-prefix-p is a byte-compiled function defined in latex.el.

Signature

(LaTeX--after-math-macro-prefix-p)

Documentation

Return non-nil if point is after a macro prefix in math mode.

Also sets match-data so that group 1 is the already typed prefix.

For example, in $a + \a| - 17$ with | denoting point, the function would return non-nil and (match-string 1) would return
"a" afterwards.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX--after-math-macro-prefix-p ()
  "Return non-nil if point is after a macro prefix in math mode.
Also sets `match-data' so that group 1 is the already typed
prefix.

For example, in $a + \\a| - 17$ with | denoting point, the
function would return non-nil and `(match-string 1)' would return
\"a\" afterwards."
  (and (texmathp)
       (TeX-looking-at-backward "\\\\\\([a-zA-Z]*\\)")))