Function: outline-forward-same-level
outline-forward-same-level is an interactive and byte-compiled
function defined in outline.el.gz.
Signature
(outline-forward-same-level ARG)
Documentation
Move forward to the ARG'th subheading at same level as this one.
Stop at the first and last subheadings of a superior heading.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defun outline-forward-same-level (arg)
"Move forward to the ARG'th subheading at same level as this one.
Stop at the first and last subheadings of a superior heading."
(interactive "p")
(outline-back-to-heading)
(while (> arg 0)
(let ((point-to-move-to (save-excursion
(outline-get-next-sibling))))
(if point-to-move-to
(progn
(goto-char point-to-move-to)
(setq arg (1- arg)))
(progn
(setq arg 0)
(error "No following same-level heading"))))))