Function: LaTeX-down-section
LaTeX-down-section is a byte-compiled function defined in latex.el.
Signature
(LaTeX-down-section)
Documentation
Return the value of a section one level under the current.
Tries to find what kind of section that have been used earlier in the text, if this fail, it will just return one less than the current section.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-down-section ()
"Return the value of a section one level under the current.
Tries to find what kind of section that have been used earlier in the
text, if this fail, it will just return one less than the current
section."
(save-excursion
(let ((current (LaTeX-current-section))
(next nil)
(regexp (LaTeX-outline-regexp)))
(if (not (re-search-backward regexp nil t))
(1+ current)
(while (not next)
(cond
((eq (LaTeX-current-section) current)
(if (re-search-forward regexp nil t)
(if (<= (setq next (LaTeX-current-section)) current) ;Wow!
(setq next (1+ current)))
(setq next (1+ current))))
((not (re-search-backward regexp nil t))
(setq next (1+ current)))))
next))))