Function: rst-all-ttls-compute
rst-all-ttls-compute is a byte-compiled function defined in rst.el.gz.
Signature
(rst-all-ttls-compute)
Documentation
Return a list of rst-Ttl for current buffer with ascending line number.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-all-ttls-compute ()
;; testcover: ok.
"Return a list of `rst-Ttl' for current buffer with ascending line number."
(save-excursion
(save-match-data
(let (ttls)
(goto-char (point-min))
;; Iterate over all the section titles/adornments in the file.
(while (re-search-forward (rst-re 'ado-beg-2-1) nil t)
(let ((ttl (rst-classify-adornment
(match-string-no-properties 0) (point))))
(when (and ttl (rst-Ttl-is-section ttl))
(when (rst-Ttl-hdr ttl)
(push ttl ttls))
(goto-char (rst-Ttl-get-end ttl)))))
(nreverse ttls)))))