Function: hyrolo-outline-level
hyrolo-outline-level is a byte-compiled function defined in hyrolo.el.
Signature
(hyrolo-outline-level)
Documentation
Return the depth to which an entry is nested in the *HyRolo* buffer.
File headers are considered level 1.
This is actually either the level specified in outline-heading-alist
or else the number of characters matched by outline-regexp minus
trailing periods and whitespace.
Point must be at the beginning of a heading line.
This function is used for every file-type major-mode supported by HyRolo.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-outline-level ()
"Return the depth to which an entry is nested in the *HyRolo* buffer.
File headers are considered level 1.
This is actually either the level specified in `outline-heading-alist'
or else the number of characters matched by `outline-regexp' minus
trailing periods and whitespace.
Point must be at the beginning of a heading line.
This function is used for every file-type `major-mode' supported by HyRolo."
(or (and outline-heading-alist (looking-at outline-regexp)
(cdr (assoc (match-string-no-properties 0) outline-heading-alist)))
(cond ((derived-mode-p 'kotl-mode)
(kcell-view:level))
((hyrolo-hdr-in-p) 1)
((looking-at hyrolo-hdr-and-entry-regexp)
(length (match-string hyrolo-entry-group-number)))
(t 0))))