Function: kcell-data:create

kcell-data:create is a byte-compiled function defined in kcell.el.

Signature

(kcell-data:create CELL IDSTAMP)

Documentation

Given a kotl CELL and IDSTAMP (an integer), return a kcell-data structure.

If CELL, its idstamp, or its property list are nil, this repairs the cell by assuming it is the cell at point and filling in the missing information.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kcell.el
;;;
;;; kcell-data - Persistent representation of Koutline cells (written to files)
;;;

(defun kcell-data:create (cell idstamp)
  "Given a kotl CELL and IDSTAMP (an integer), return a kcell-data structure.
If CELL, its idstamp, or its property list are nil, this repairs the cell by
assuming it is the cell at point and filling in the missing information."
   (let ((plist (kcell:plist cell)))
     (if (and cell idstamp plist)
	 (vector idstamp plist)
       (kcell-data:create
	(kcell:create plist)
	(or idstamp (kview:id-increment kotl-kview))))))