Function: newsticker-next-new-item

newsticker-next-new-item is an interactive and byte-compiled function defined in newst-plainview.el.gz.

Signature

(newsticker-next-new-item &optional DO-NOT-WRAP-AT-EOB)

Documentation

Go to next new news item.

If no new item is found behind point, search is continued at beginning of buffer unless optional argument DO-NOT-WRAP-AT-EOB is non-nil.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-plainview.el.gz
(defun newsticker-next-new-item (&optional do-not-wrap-at-eob)
  "Go to next new news item.
If no new item is found behind point, search is continued at
beginning of buffer unless optional argument DO-NOT-WRAP-AT-EOB
is non-nil."
  (interactive)
  (widen)
  (let ((go-ahead t))
    (while go-ahead
      (unless (newsticker--buffer-goto '(item) 'new)
	;; found nothing -- wrap
	(unless do-not-wrap-at-eob
	  (goto-char (point-min))
	  (newsticker-next-new-item t))
	(setq go-ahead nil))
      (unless (invisible-p (point))
	;; this item is invisible -- continue search
        (setq go-ahead nil))))
  (run-hooks 'newsticker-select-item-hook)
  (point))