Function: newsticker--cache-item-compare-by-position

newsticker--cache-item-compare-by-position is a byte-compiled function defined in newst-backend.el.gz.

Signature

(newsticker--cache-item-compare-by-position ITEM1 ITEM2)

Documentation

Compare ITEM1 and ITEM2 by comparing their original positions.

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
(defun newsticker--cache-item-compare-by-position (item1 item2)
  "Compare ITEM1 and ITEM2 by comparing their original positions."
  (catch 'result
    (let ((age1 (newsticker--age item1))
          (age2 (newsticker--age item2)))
      (if (not (eq age1 age2))
          (cond ((eq age1 'obsolete)
                 (throw 'result nil))
                ((eq age2 'obsolete)
                 (throw 'result t)))))
    (< (or (newsticker--pos item1) 0) (or (newsticker--pos item2) 0))))