Function: kcell-view:label

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

Signature

(kcell-view:label &optional POS)

Documentation

Return displayed label string of cell at optional POS or point.

If labels are off, return cell's idstamp as a string.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kview.el
(defun kcell-view:label (&optional pos)
  "Return displayed label string of cell at optional POS or point.
If labels are off, return cell's idstamp as a string."
  (save-excursion
    (when pos
      (goto-char pos))
    (let ((label-type (kview:label-type kotl-kview)))
      (if (eq label-type 'no)
	  (kcell-view:idstamp)
	(kcell-view:to-label-end)
	(buffer-substring-no-properties
	 (point) (progn (skip-chars-backward "^ \t\n\r")
			(point)))))))