Function: todo-marked-item-p
todo-marked-item-p is a byte-compiled function defined in
todo-mode.el.gz.
Signature
(todo-marked-item-p)
Documentation
Non-nil if this item begins with todo-item-mark.
In that case, return the item's prefix overlay.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-marked-item-p ()
"Non-nil if this item begins with `todo-item-mark'.
In that case, return the item's prefix overlay."
(let* ((ov (todo-get-overlay 'prefix))
;; If an item insertion command is called on a todo file
;; before it is visited, it has no prefix overlays yet, so
;; check for this.
(pref (when ov (overlay-get ov 'before-string)))
(marked (when pref
(string-match (concat "^" (regexp-quote todo-item-mark))
pref))))
(when marked ov)))