Function: org-fold-flag-above-first-heading
org-fold-flag-above-first-heading is a byte-compiled function defined
in org-fold.el.gz.
Signature
(org-fold-flag-above-first-heading &optional ARG)
Documentation
Hide from bob up to the first heading.
Move point to the beginning of first heading or end of buffer.
Aliases
org-flag-above-first-heading (obsolete since 9.6)
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-fold.el.gz
(defun org-fold-flag-above-first-heading (&optional arg)
"Hide from bob up to the first heading.
Move point to the beginning of first heading or end of buffer."
(goto-char (point-min))
(unless (org-at-heading-p)
(outline-next-heading))
(unless (bobp)
(org-fold-region 1 (1- (point)) (not arg) 'outline)))