Function: newsticker--set-face-properties
newsticker--set-face-properties is a byte-compiled function defined in
newst-plainview.el.gz.
Signature
(newsticker--set-face-properties POS1 POS2 NT-FACE AGE)
Documentation
Set the face for the text between the positions POS1 and POS2.
The face is chosen according the values of NT-FACE and AGE.
Source Code
;; Defined in /usr/src/emacs/lisp/net/newst-plainview.el.gz
(defun newsticker--set-face-properties (pos1 pos2 nt-face age)
"Set the face for the text between the positions POS1 and POS2.
The face is chosen according the values of NT-FACE and AGE."
(let ((face (cond ((eq nt-face 'feed)
'newsticker-feed-face)
((eq nt-face 'item)
(cond ((eq age 'new)
'newsticker-new-item-face)
((eq age 'old)
'newsticker-old-item-face)
((eq age 'immortal)
'newsticker-immortal-item-face)
((eq age 'obsolete)
'newsticker-obsolete-item-face)))
((eq nt-face 'date)
'newsticker-date-face)
((eq nt-face 'stat)
'newsticker-statistics-face)
((eq nt-face 'extra)
'newsticker-extra-face)
((eq nt-face 'enclosure)
'newsticker-enclosure-face))))
(when face
(put-text-property pos1 (max pos1 pos2) 'face face))))