Function: newsticker--cache-replace-age

newsticker--cache-replace-age is a byte-compiled function defined in newst-backend.el.gz.

Signature

(newsticker--cache-replace-age DATA FEED OLD-AGE NEW-AGE)

Documentation

Mark all items in DATA in FEED which carry age OLD-AGE with NEW-AGE.

If FEED is any it applies to all feeds. If OLD-AGE is any, all marks are replaced by NEW-AGE. Removes all pre-formatted contents.

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
(defun newsticker--cache-replace-age (data feed old-age new-age)
  "Mark all items in DATA in FEED which carry age OLD-AGE with NEW-AGE.
If FEED is `any' it applies to all feeds.  If OLD-AGE is `any',
all marks are replaced by NEW-AGE.  Removes all pre-formatted contents."
  (mapc (lambda (a-feed)
          (when (or (eq feed 'any)
                    (eq (car a-feed) feed))
            (let ((items (cdr a-feed)))
              (mapc (lambda (item)
                      (when (or (eq old-age 'any)
                                (eq (newsticker--age item) old-age))
                        (setcar (nthcdr 4 item) new-age)
                        (newsticker--do-forget-preformatted item)))
                    items))))
        data)
  data)