Function: Man-find-section

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

Signature

(Man-find-section SECTION)

Documentation

Move point to SECTION if it exists, otherwise don't move point.

Returns t if section is found, nil otherwise.

Source Code

;; Defined in /usr/src/emacs/lisp/man.el.gz
(defun Man-find-section (section)
  "Move point to SECTION if it exists, otherwise don't move point.
Returns t if section is found, nil otherwise."
  (let ((curpos (point))
	(case-fold-search nil))
    (goto-char (point-min))
    (if (re-search-forward (concat "^" section) (point-max) t)
	(progn (beginning-of-line) t)
      (goto-char curpos)
      nil)))