Function: kotl-mode:hide-subtree
kotl-mode:hide-subtree is an interactive and byte-compiled function
defined in kotl-mode.el.
Signature
(kotl-mode:hide-subtree &optional CELL-REF SHOW-FLAG)
Documentation
Hide subtree, ignoring root, at optional CELL-REF (defaults to cell at point).
With optional SHOW-FLAG, expand the subtree instead.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:hide-subtree (&optional cell-ref show-flag)
"Hide subtree, ignoring root, at optional CELL-REF (defaults to cell at point).
With optional SHOW-FLAG, expand the subtree instead."
(interactive)
(kotl-mode:is-p)
(save-excursion
;; Next line ensures point is in the root of the current tree if
;; the tree is at all hidden.
(kotl-mode:beginning-of-line)
(if cell-ref
(kotl-mode:goto-cell cell-ref t)
(kotl-mode:beginning-of-cell))
(let ((start (kcell-view:end-contents))
(end (kotl-mode:tree-end t))
(buffer-read-only))
(outline-flag-region start end (not show-flag)))))