Function: kotl-mode:toggle-tree-expansion

kotl-mode:toggle-tree-expansion is an interactive and byte-compiled function defined in kotl-mode.el.

Signature

(kotl-mode:toggle-tree-expansion &optional ALL-FLAG)

Documentation

Collapse or expand each cell of tree rooted at point.

Act on all visible cells if optional prefix arg ALL-FLAG is given. If current cell is collapsed, cells will be expanded, otherwise they will be collapsed.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:toggle-tree-expansion (&optional all-flag)
  "Collapse or expand each cell of tree rooted at point.
Act on all visible cells if optional prefix arg ALL-FLAG is given.
If current cell is collapsed, cells will be expanded, otherwise they will be
collapsed."
  (interactive "P")
  (if (kcell-view:collapsed-p)
       ;; expand cells
      (kotl-mode:expand-tree all-flag)
    (kotl-mode:collapse-tree all-flag)))