Function: kview:add-cell

kview:add-cell is a byte-compiled function defined in kview.el.

Signature

(kview:add-cell KLABEL LEVEL &optional CONTENTS PROP-LIST NO-FILL SIBLING-P)

Documentation

Create a new cell with full KLABEL and add it at point at LEVEL within outline.

Optional cell CONTENTS and PROP-LIST may also be given, as well as NO-FILL which skips filling of any CONTENTS. Return new cell. This function does not renumber any other cells. 1 = first level.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kview.el
;;;
;;; kview - one view per buffer, multiple views per kotl
;;;

(defun kview:add-cell (klabel level &optional contents prop-list no-fill sibling-p)
  "Create a new cell with full KLABEL and add it at point at LEVEL within outline.
Optional cell CONTENTS and PROP-LIST may also be given, as well
as NO-FILL which skips filling of any CONTENTS.  Return new cell.
This function does not renumber any other cells.  1 = first
level."
  (let* ((idstamp (if (klabel:idstamp-p klabel)
		      (if (stringp klabel) (string-to-number klabel) klabel)
		    (kview:id-increment kotl-kview)))
	 (new-cell (kcell:create prop-list)))
    (kcell-view:create kotl-kview new-cell contents level idstamp klabel no-fill sibling-p)
    new-cell))