Function: hproperty:char-property-contains-p

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

Signature

(hproperty:char-property-contains-p POS PROPERTY VALUE)

Documentation

At POS if PROPERTY contains VALUE (a symbol), return VALUE, else nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hproperty.el
;;; char-property and overlay utility functions

(defun hproperty:char-property-contains-p (pos property value)
  "At POS if PROPERTY contains VALUE (a symbol), return VALUE, else nil."
  (let ((val (get-char-property pos property)))
    (when (or (eq val value)
	      ;; `val' may be a list of property values
	      (and (listp val) (memq value val)))
      value)))