Function: klabel-type:update-tree-labels

klabel-type:update-tree-labels is a byte-compiled function defined in klabel.el.

Signature

(klabel-type:update-tree-labels CURRENT-CELL-LABEL FIRST-LABEL)

Documentation

Update the labels of current cell and its subtree.

CURRENT-CELL-LABEL is the label to display for the current cell. Use (klabel-type:update-labels "0") to update all cells in an outline.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/klabel.el
(defun klabel-type:update-tree-labels (_current-cell-label first-label)
  "Update the labels of current cell and its subtree.
CURRENT-CELL-LABEL is the label to display for the current cell.
Use `(klabel-type:update-labels \"0\")' to update all cells in an outline."
  (let ((label-type (kview:label-type kotl-kview))
	(lbl-sep-len (kview:label-separator-length kotl-kview)))
    (save-excursion
      (funcall (intern-soft (concat "klabel-type:set-"
				    (symbol-name label-type)))
	       first-label lbl-sep-len
	       (kcell-view:indent nil lbl-sep-len)
	       (kview:level-indent kotl-kview)
	       ;; Update current tree only.
	       t))))