Function: todo--user-error-if-marked-done-item
todo--user-error-if-marked-done-item is a byte-compiled function
defined in todo-mode.el.gz.
Signature
(todo--user-error-if-marked-done-item)
Documentation
Signal user error on marked done items.
Helper function for editing commands that apply only to (possibly marked) not done todo items.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo--user-error-if-marked-done-item ()
"Signal user error on marked done items.
Helper function for editing commands that apply only to (possibly
marked) not done todo items."
(save-excursion
(save-restriction
(goto-char (point-max))
(todo-backward-item)
(unless (todo-done-item-p)
(widen)
(unless (re-search-forward
(concat "^" (regexp-quote todo-category-beg)) nil t)
(goto-char (point-max)))
(forward-line -1))
(while (todo-done-item-p)
(when (todo-marked-item-p)
(user-error "This command does not apply to done items"))
(todo-backward-item)))))