Function: org-get-previous-line-level
org-get-previous-line-level is a byte-compiled function defined in
org.el.gz.
Signature
(org-get-previous-line-level)
Documentation
Return the outline depth of the last headline before the current line.
Returns 0 for the first headline in the buffer, and nil if before the first headline.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-get-previous-line-level ()
"Return the outline depth of the last headline before the current line.
Returns 0 for the first headline in the buffer, and nil if before the
first headline."
(and (org-current-level)
(or (and (/= (line-beginning-position) (point-min))
(save-excursion (forward-line -1) (org-current-level)))
0)))