Function: hproperty:char-property-end

hproperty:char-property-end is a byte-compiled function defined in hproperty.el.

Signature

(hproperty:char-property-end POS PROPERTY VALUE)

Documentation

From POS, return the end of text PROPERTY with VALUE overlapping POS.

Otherwise, return nil. Value must be a symbol.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hproperty.el
(defun hproperty:char-property-end (pos property value)
  "From POS, return the end of text PROPERTY with VALUE overlapping POS.
Otherwise, return nil.  Value must be a symbol."
  (when-let* ((val (hproperty:char-property-contains-p pos property value))
	      (next pos))
    ;; Can't use `next-single-char-property-change' below
    ;; because it checks for any change in the property value, not
    ;; just if the property contains the value desired.
    (while (and (setq next (1+ next))
		(<= next (point-max))
		(hproperty:char-property-contains-p next property value)))
    (min next (point-max))))