Function: hproperty:but-get-first-in-region

hproperty:but-get-first-in-region is a byte-compiled function defined in hproperty.el.

Signature

(hproperty:but-get-first-in-region START END PROPERTY VALUE)

Documentation

Return the first button between START & END with PROPERTY & VALUE.

Return nil if none.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hproperty.el
(defun hproperty:but-get-first-in-region (start end property value)
  "Return the first button between START & END with PROPERTY & VALUE.
Return nil if none."
  (catch 'first
    (mapc (lambda (overlay)
	    (when (and (bufferp (overlay-buffer overlay))
		       (memq (overlay-get overlay property)
			     (list value)))
	      (throw 'first overlay)))
	  (overlays-in start end))
    nil))