Function: newsticker-previous-new-item

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

Signature

(newsticker-previous-new-item &optional DO-NOT-WRAP-AT-BOB)

Documentation

Go to previous new news item.

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

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-plainview.el.gz
(defun newsticker-previous-new-item (&optional do-not-wrap-at-bob)
  "Go to previous new news item.
If no new item is found before point, search is continued at
beginning of buffer unless optional argument DO-NOT-WRAP-AT-BOB
is non-nil."
  (interactive)
  (widen)
  (let ((go-ahead t))
    (while go-ahead
      (unless (newsticker--buffer-goto '(item) 'new t)
	(unless do-not-wrap-at-bob
	  (goto-char (point-max))
	  (newsticker--buffer-goto '(item) 'new t)))
      (unless (newsticker--lists-intersect-p
               (get-text-property (point) 'invisible)
		    buffer-invisibility-spec)
	(setq go-ahead nil))))
  (run-hooks 'newsticker-select-item-hook)
  (point))