Function: todo-insert-item-here
todo-insert-item-here is an interactive and byte-compiled function
defined in otodo-mode.el.gz.
Signature
(todo-insert-item-here)
Documentation
Insert a new TODO list entry directly above the entry at point.
If point is on an empty line, insert the entry there.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/otodo-mode.el.gz
(defun todo-insert-item-here ()
"Insert a new TODO list entry directly above the entry at point.
If point is on an empty line, insert the entry there."
(interactive)
(if (not (derived-mode-p 'todo-mode)) (todo-show))
(let ((new-item (concat todo-prefix " "
(read-from-minibuffer
"New TODO entry: "
(if todo-entry-prefix-function
(funcall todo-entry-prefix-function))))))
(unless (and (bolp) (eolp)) (todo-item-start))
(insert (concat new-item "\n"))
(backward-char)
;; put point at start of new entry
(todo-item-start)))