Function: todo-insert-item-from-calendar

todo-insert-item-from-calendar is an interactive and byte-compiled function defined in todo-mode.el.gz.

Signature

(todo-insert-item-from-calendar &optional ARG)

Documentation

Prompt for and insert a new item with date selected from calendar.

Invoked without prefix argument ARG, insert the item into the current category, without one prefix argument, prompt for the category from the current todo file or from one listed in todo-category-completions-files; with two prefix arguments, prompt for a todo file and then for a category in it.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-insert-item-from-calendar (&optional arg)
  "Prompt for and insert a new item with date selected from calendar.
Invoked without prefix argument ARG, insert the item into the
current category, without one prefix argument, prompt for the
category from the current todo file or from one listed in
`todo-category-completions-files'; with two prefix arguments,
prompt for a todo file and then for a category in it."
  (interactive "P")
  (setq todo-date-from-calendar
	(calendar-date-string (calendar-cursor-to-date t) t t))
  (calendar-exit)
  (todo-insert-item--basic arg nil todo-date-from-calendar))