Function: rst-toc-insert-tree
rst-toc-insert-tree is a byte-compiled function defined in rst.el.gz.
Signature
(rst-toc-insert-tree STN BUF STYLE DEPTH KEYMAP TGT-STN)
Documentation
Insert table of contents of tree below top node STN in buffer BUF.
STYLE is the style to use and must be one of the symbols allowed
for rst-toc-insert-style. DEPTH is the maximum relative depth
from STN to insert or nil for no maximum depth. See
rst-toc-insert-link for KEYMAP. Return beginning of title line
if TGT-STN is rendered or nil if not rendered or TGT-STN is nil.
Just return nil if STN is nil.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-toc-insert-tree (stn buf style depth keymap tgt-stn)
;; testcover: ok.
"Insert table of contents of tree below top node STN in buffer BUF.
STYLE is the style to use and must be one of the symbols allowed
for `rst-toc-insert-style'. DEPTH is the maximum relative depth
from STN to insert or nil for no maximum depth. See
`rst-toc-insert-link' for KEYMAP. Return beginning of title line
if TGT-STN is rendered or nil if not rendered or TGT-STN is nil.
Just return nil if STN is nil."
(when stn
(rst-toc-insert-children (rst-Stn-children stn) buf style depth 0 "" keymap
tgt-stn)))