Function: org-check-deadlines

org-check-deadlines is an interactive and byte-compiled function defined in org.el.gz.

Signature

(org-check-deadlines NDAYS)

Documentation

Check if there are any deadlines due or past due.

A deadline is considered due if it happens within org-deadline-warning-days days from today's date. If the deadline appears in an entry marked DONE, it is not shown. A numeric prefix argument NDAYS can be used to test that many days. If the prefix is a raw C-u (universal-argument), all deadlines are shown.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-check-deadlines (ndays)
  "Check if there are any deadlines due or past due.
A deadline is considered due if it happens within `org-deadline-warning-days'
days from today's date.  If the deadline appears in an entry marked DONE,
it is not shown.  A numeric prefix argument NDAYS can be used to test that
many days.  If the prefix is a raw `\\[universal-argument]', all deadlines \
are shown."
  (interactive "P")
  (let* ((org-warn-days
	  (cond
	   ((equal ndays '(4)) 100000)
	   (ndays (prefix-numeric-value ndays))
	   (t (abs org-deadline-warning-days))))
	 (case-fold-search nil)
	 (regexp (concat "\\<" org-deadline-string " *<\\([^>]+\\)>"))
	 (callback
	  (lambda () (org-deadline-close-p (match-string 1) org-warn-days))))
    (message "%d deadlines past-due or due within %d days"
	     (org-occur regexp nil callback)
	     org-warn-days)))