Function: klabel-type:increment
klabel-type:increment is a byte-compiled function defined in
klabel.el.
Signature
(klabel-type:increment LABEL-TYPE)
Documentation
Return a function and compute the next cell label of LABEL-TYPE.
The function takes a single label argument. If the label is
"0", its first child is computed, otherwise, the next sibling
is computed.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/klabel.el
(defun klabel-type:increment (label-type)
"Return a function and compute the next cell label of LABEL-TYPE.
The function takes a single label argument. If the label is
\"0\", its first child is computed, otherwise, the next sibling
is computed."
(cond ((memq label-type '(alpha legal partial-alpha))
(intern-soft (concat "klabel:increment-" (symbol-name label-type))))
((eq label-type 'no)
(lambda (_label) ""))
((eq label-type 'star)
(lambda (label) (if (string-equal label "0") "*" label)))
((eq label-type 'id)
(lambda (_label) (format "0%s" (or (kview:id-increment kotl-kview) ""))))
(t (error
"(klabel:increment): Invalid label type setting: `%s'" label-type))))