Function: gnus-find-text-property-region
gnus-find-text-property-region is a byte-compiled function defined in
gnus-util.el.gz.
Signature
(gnus-find-text-property-region START END PROP)
Documentation
Return a list of text property regions that has property PROP.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-util.el.gz
(defun gnus-find-text-property-region (start end prop)
"Return a list of text property regions that has property PROP."
(let (regions value)
(unless (get-text-property start prop)
(setq start (next-single-property-change start prop)))
(while start
(setq value (get-text-property start prop)
end (text-property-not-all start (point-max) prop value))
(if (not end)
(setq start nil)
(when value
(push (list (set-marker (make-marker) start)
(set-marker (make-marker) end)
value)
regions))
(setq start (next-single-property-change start prop))))
(nreverse regions)))