Function: allout-depth
allout-depth is a byte-compiled function defined in allout.el.gz.
Signature
(allout-depth)
Documentation
Return depth of topic most immediately containing point.
Does not do doublecheck for aberrant topic header.
Return zero if point is not within any topic.
Like allout-current-depth, but respects hidden as well as visible topics.
Source Code
;; Defined in /usr/src/emacs/lisp/allout.el.gz
;;;_ : Location attributes
;;;_ > allout-depth ()
(defun allout-depth ()
"Return depth of topic most immediately containing point.
Does not do doublecheck for aberrant topic header.
Return zero if point is not within any topic.
Like `allout-current-depth', but respects hidden as well as visible topics."
(save-excursion
(let ((start-point (point)))
(if (and (allout-goto-prefix)
(not (< start-point (point))))
allout-recent-depth
(progn
;; Oops, no prefix, nullify it:
(allout-nullify-prefix-data)
;; ... and return 0:
0)))))