Function: Man-next-section

Man-next-section is an interactive and byte-compiled function defined in man.el.gz.

Signature

(Man-next-section N)

Documentation

Move point to Nth next section (default 1).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/man.el.gz
;; ======================================================================
;; Man mode commands

(defun Man-next-section (n)
  "Move point to Nth next section (default 1)."
  (interactive "p" man-common)
  (let ((case-fold-search nil)
        (start (point)))
    (if (looking-at Man-heading-regexp)
	(forward-line 1))
    (if (re-search-forward Man-heading-regexp (point-max) t n)
	(beginning-of-line)
      (goto-char (point-max))
      ;; The last line doesn't belong to any section.
      (forward-line -1))
    ;; But don't move back from the starting point (can happen if `start'
    ;; is somewhere on the last line).
    (if (< (point) start) (goto-char start))))