Function: outline-end-of-subtree

outline-end-of-subtree is a byte-compiled function defined in outline.el.gz.

Signature

(outline-end-of-subtree)

Documentation

Move to the end of the current subtree.

Source Code

;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defun outline-end-of-subtree ()
  "Move to the end of the current subtree."
  (outline-back-to-heading)
  (let ((first t)
	(level (funcall outline-level)))
    (while (and (not (eobp))
		(or first (> (funcall outline-level) level)))
      (setq first nil)
      (outline-next-heading))
    (if (and (bolp) (not (eolp)))
	;; We stopped at a nonempty line (the next heading).
	(outline--end-of-previous))))