Function: org-get-next-sibling

org-get-next-sibling is a byte-compiled function defined in org.el.gz.

Signature

(org-get-next-sibling)

Documentation

Move to next heading of the same level, and return point.

If there is no such heading, return nil. This is like outline-next-sibling, but invisible headings are ok.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-get-next-sibling ()
  "Move to next heading of the same level, and return point.
If there is no such heading, return nil.
This is like outline-next-sibling, but invisible headings are ok."
  (let ((level (funcall outline-level)))
    (outline-next-heading)
    (while (and (not (eobp)) (> (funcall outline-level) level))
      (outline-next-heading))
    (unless (or (eobp) (< (funcall outline-level) level))
      (point))))