Function: Man-build-section-list

Man-build-section-list is a byte-compiled function defined in man.el.gz.

Signature

(Man-build-section-list)

Documentation

Build the list of manpage sections.

Source Code

;; Defined in /usr/src/emacs/lisp/man.el.gz
(defun Man-build-section-list ()
  "Build the list of manpage sections."
  (setq Man--sections ())
  (goto-char (point-min))
  (let ((case-fold-search nil))
    (while (re-search-forward Man-heading-regexp nil t)
      (let ((section (match-string 1)))
        (unless (member section Man--sections)
          (push section Man--sections)))
      (forward-line)))
  (setq Man--sections (nreverse Man--sections)))