Function: kcell-view:level
kcell-view:level is a byte-compiled function defined in kview.el.
Signature
(kcell-view:level &optional POS LBL-SEP-LEN INDENT)
Documentation
Return the outline level of the current cell or the one at optional POS.
0 = top cell level, 1 = 1st level of the outline. Optional
LBL-SEP-LEN is the number of spaces between a cell label and
the start of its body. Optional INDENT is the indentation in
characters of the cell whose level is desired.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20261030.2317/kotl/kview.el
(defun kcell-view:level (&optional pos lbl-sep-len indent)
"Return the outline level of the current cell or the one at optional POS.
0 = top cell level, 1 = 1st level of the outline. Optional
LBL-SEP-LEN is the number of spaces between a cell label and
the start of its body. Optional INDENT is the indentation in
characters of the cell whose level is desired."
(unless lbl-sep-len
(setq lbl-sep-len (kview:label-separator-length kotl-kview)))
(floor (/ (- (or indent (kcell-view:indent pos lbl-sep-len)) lbl-sep-len)
(kview:level-indent kotl-kview))))