Function: TeX-looking-at-backward
TeX-looking-at-backward is a byte-compiled function defined in tex.el.
Signature
(TeX-looking-at-backward REGEXP &optional LIMIT)
Documentation
Return non-nil if the text before point matches REGEXP.
Optional second argument LIMIT gives a max number of characters to look backward for.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-looking-at-backward (regexp &optional limit)
"Return non-nil if the text before point matches REGEXP.
Optional second argument LIMIT gives a max number of characters
to look backward for."
(let ((pos (point)))
(save-excursion
(and (re-search-backward regexp
(if limit (max (point-min) (- (point) limit)))
t)
(eq (match-end 0) pos)))))