Function: newsticker--buffer-set-faces
newsticker--buffer-set-faces is a byte-compiled function defined in
newst-plainview.el.gz.
Signature
(newsticker--buffer-set-faces START END)
Documentation
Add face properties according to mark property.
Scans the buffer between START and END.
Source Code
;; Defined in /usr/src/emacs/lisp/net/newst-plainview.el.gz
(defun newsticker--buffer-set-faces (start end)
"Add face properties according to mark property.
Scans the buffer between START and END."
(save-excursion
(put-text-property start end 'face 'newsticker-default-face)
(goto-char start)
(let ((pos1 start)
(pos2 1)
(nt-face (get-text-property start 'nt-face))
(nt-age (get-text-property start 'nt-age)))
(when nt-face
(setq pos2 (next-single-property-change (point) 'nt-face))
(newsticker--set-face-properties pos1 pos2 nt-face nt-age)
(setq nt-face (get-text-property pos2 'nt-face))
(setq pos1 pos2))
(while (and (setq pos2 (next-single-property-change pos1 'nt-face))
(<= pos2 end)
(> pos2 pos1))
(newsticker--set-face-properties pos1 pos2 nt-face nt-age)
(setq nt-face (get-text-property pos2 'nt-face))
(setq nt-age (get-text-property pos2 'nt-age))
(setq pos1 pos2)))))