Function: TeX-search-forward-comment-start

TeX-search-forward-comment-start is a byte-compiled function defined in tex.el.

Signature

(TeX-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.

The search relies on TeX-comment-start-regexp being set correctly for the current mode.

Set TeX-search-forward-comment-start-function in order to override the default implementation.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-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.

The search relies on `TeX-comment-start-regexp' being set
correctly for the current mode.

Set `TeX-search-forward-comment-start-function' in order to
override the default implementation."
  (if TeX-search-forward-comment-start-function
      (funcall TeX-search-forward-comment-start-function limit)
    (setq limit (or limit (point-max)))
    (when (TeX-re-search-forward-unescaped TeX-comment-start-regexp limit t)
      (match-beginning 0))))