Function: klabel-type:child

klabel-type:child is a byte-compiled function defined in klabel.el.

Signature

(klabel-type:child LABEL-TYPE)

Documentation

Return function which computes child cell label of LABEL-TYPE.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/klabel.el
;;;
;;; klabel-type - kview-specific label type functions
;;;
(defun klabel-type:child (label-type)
  "Return function which computes child cell label of LABEL-TYPE."
  (cond ((memq label-type '(alpha legal partial-alpha))
	 (intern-soft (concat "klabel:child-"
			      (symbol-name label-type))))
	((eq label-type 'no)
	 (lambda (_label) ""))
	((eq label-type 'star)
	 (lambda (label) (concat label "*")))
	((eq label-type 'id)
	 (lambda (_label) (format "0%s" (or (kview:id-counter kotl-kview) ""))))
	(t (error
	    "(klabel-type:child): Invalid label type setting: `%s'"
	    label-type))))