Function: rst-display-hdr-hierarchy

rst-display-hdr-hierarchy is an interactive and byte-compiled function defined in rst.el.gz.

Signature

(rst-display-hdr-hierarchy)

Documentation

Display the current file's section title adornments hierarchy.

Hierarchy is displayed in a temporary buffer.

Key Bindings

Aliases

rst-display-adornments-hierarchy (obsolete since 29.1)

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-display-hdr-hierarchy ()
  ;; testcover: ok.
  "Display the current file's section title adornments hierarchy.
Hierarchy is displayed in a temporary buffer."
  (interactive)
  (rst-reset-section-caches)
  (let ((hdrs (rst-hdr-hierarchy))
	(level 1))
    (with-output-to-temp-buffer "*rest section hierarchy*"
      (with-current-buffer standard-output
	(dolist (hdr hdrs)
	  (insert (format "\nSection Level %d" level))
	  (rst-update-section hdr)
	  (goto-char (point-max))
	  (insert "\n")
	  (cl-incf level))))))