Function: kotl-mode:beginning-of-tree
kotl-mode:beginning-of-tree is an interactive and byte-compiled
function defined in kotl-mode.el.
Signature
(kotl-mode:beginning-of-tree)
Documentation
Move point to the level 1 root of the current cell's tree.
Leave point at the start of the cell.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:beginning-of-tree ()
"Move point to the level 1 root of the current cell's tree.
Leave point at the start of the cell."
(interactive)
(kotl-mode:maintain-region-highlight)
(let ((lbl-sep-len (kview:label-separator-length kotl-kview)))
(when (/= (kcell-view:level nil lbl-sep-len) 1)
;; Enable user to return to this previous position if desired.
(push-mark nil 'no-msg))
(while (and (/= (kcell-view:level nil lbl-sep-len) 1)
(kcell-view:parent nil lbl-sep-len)))
(kotl-mode:beginning-of-cell)))