Function: org-deadline
org-deadline is an interactive and byte-compiled function defined in
org.el.gz.
Signature
(org-deadline ARG &optional TIME)
Documentation
Insert a "DEADLINE:" string with a timestamp to make a deadline.
When called interactively, this command pops up the Emacs calendar to let the user select a date.
With one universal prefix argument, remove any deadline from the item. With two universal prefix arguments, prompt for a warning delay. With argument TIME, set the deadline at the corresponding date. TIME can either be an Org date like "2011-07-24" or a delta like "+2d".
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-deadline (arg &optional time)
"Insert a \"DEADLINE:\" string with a timestamp to make a deadline.
When called interactively, this command pops up the Emacs calendar to let
the user select a date.
With one universal prefix argument, remove any deadline from the item.
With two universal prefix arguments, prompt for a warning delay.
With argument TIME, set the deadline at the corresponding date. TIME
can either be an Org date like \"2011-07-24\" or a delta like \"+2d\"."
(interactive "P")
(if (and (org-region-active-p) org-loop-over-headlines-in-active-region)
(org-map-entries
(lambda () (org--deadline-or-schedule arg 'deadline time))
nil
(if (eq org-loop-over-headlines-in-active-region 'start-level)
'region-start-level
'region)
(lambda () (when (org-invisible-p) (org-end-of-subtree nil t))))
(org--deadline-or-schedule arg 'deadline time)))