Function: TeX-comment-prefix
TeX-comment-prefix is a byte-compiled function defined in tex.el.
Signature
(TeX-comment-prefix)
Documentation
Return the comment prefix of the current line.
If there are no comment starters after potential whitespace at the beginning of the line, return nil.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-comment-prefix ()
"Return the comment prefix of the current line.
If there are no comment starters after potential whitespace at
the beginning of the line, return nil."
(save-excursion
(beginning-of-line)
(save-match-data
(when (looking-at (concat "\\([ \t]*" TeX-comment-start-regexp "+\\)+"))
(match-string 0)))))