Function: kproperty:map
kproperty:map is a byte-compiled function defined in kproperty.el.
Signature
(kproperty:map FUNCTION PROPERTY VALUE)
Documentation
Apply FUNCTION to each character with PROPERTY VALUE in the current buffer.
FUNCTION is called with the start and end points of the text span, with the matching PROPERTY and with point at the start.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kproperty.el
(defun kproperty:map (function property value)
"Apply FUNCTION to each character with PROPERTY VALUE in the current buffer.
FUNCTION is called with the start and end points of the text span,
with the matching PROPERTY and with point at the start."
(let ((result)
(start (point-min))
end)
(save-excursion
(while (and (< start (point-max))
(setq start (text-property-any start (point-max) property value)))
(goto-char start)
(setq end (or (text-property-not-all start (point-max) property value) (point-max))
result (cons (funcall function start end) result)
start end)))
(nreverse result)))