Function: kcell-view:get-attr

kcell-view:get-attr is a byte-compiled function defined in kview.el.

Signature

(kcell-view:get-attr ATTRIBUTE &optional POS)

Documentation

Return ATTRIBUTE's value for current cell or cell at optional POS.

Use 0 for POS to retrieve top cell's attributes.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kview.el
(defun kcell-view:get-attr (attribute &optional pos)
  "Return ATTRIBUTE's value for current cell or cell at optional POS.
Use 0 for POS to retrieve top cell's attributes."
  (if (eq pos 0)
      (if (eq attribute 'idstamp)
	  0
	(kcell:get-attr (kview:top-cell kotl-kview) attribute))
    (save-excursion
      (goto-char (or pos (kcell-view:plist-point)))
      (if (eq attribute 'idstamp)
	  (kproperty:get (point) attribute)
	(kcell:get-attr (kcell-view:cell) attribute)))))