Function: LaTeX-search-forward-comment-start
LaTeX-search-forward-comment-start is a byte-compiled function defined
in latex.el.
Signature
(LaTeX-search-forward-comment-start &optional LIMIT)
Documentation
Search forward for a comment start from current position till LIMIT.
If LIMIT is omitted, search till the end of the buffer.
This function makes sure that any comment starters found inside of verbatim constructs are not considered.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-search-forward-comment-start (&optional limit)
"Search forward for a comment start from current position till LIMIT.
If LIMIT is omitted, search till the end of the buffer.
This function makes sure that any comment starters found inside
of verbatim constructs are not considered."
(setq limit (or limit (point-max)))
(save-excursion
(let (start)
(catch 'found
(while (progn
(when (and (TeX-re-search-forward-unescaped
TeX-comment-start-regexp limit 'move)
(not (LaTeX-verbatim-p)))
(setq start (match-beginning 0))
(throw 'found t))
(< (point) limit))))
start)))