Function: LaTeX-outline-name
LaTeX-outline-name is a byte-compiled function defined in latex.el.
Signature
(LaTeX-outline-name)
Documentation
Guess a name for the current header line.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-outline-name ()
"Guess a name for the current header line."
(save-excursion
(search-forward "{" nil t)
(let ((beg (point)))
(backward-char)
(condition-case nil
(with-syntax-table (TeX-search-syntax-table ?\{ ?\})
(forward-sexp)
(backward-char))
(error (forward-sentence)))
(replace-regexp-in-string "[\n\r][ ]*" " "
(buffer-substring beg (point))))))