Function: todo-forward-item
todo-forward-item is a byte-compiled function defined in
todo-mode.el.gz.
Signature
(todo-forward-item &optional COUNT)
Documentation
Move point COUNT items down (by default, move down by one item).
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-forward-item (&optional count)
"Move point COUNT items down (by default, move down by one item)."
(let* ((not-done (not (or (todo-done-item-p) (looking-at "^$"))))
(start (line-end-position)))
(goto-char start)
(if (re-search-forward todo-item-start nil t (or count 1))
(goto-char (match-beginning 0))
(goto-char (point-max)))
;; If points advances by one from a todo to a done item, go back
;; to the space above todo-done-separator, since that is a
;; legitimate place to insert an item. But skip this space if
;; count > 1, since that should only stop on an item.
(when (and not-done (todo-done-item-p) (not count))
(re-search-backward "^$" start t))))