org-agenda.el: New agenda entry types :scheduled* and :deadline*
commitdf31fe6bdd635eb583486ab92b9b96f41d5c82da
authorBastien Guerry <bzg@altern.org>
Mon, 11 Mar 2013 16:27:33 +0000 (11 17:27 +0100)
committerBastien Guerry <bzg@altern.org>
Wed, 13 Mar 2013 18:52:25 +0000 (13 19:52 +0100)
treec284b59aebfb358f9e4d1126499c21ed9c393f74
parentc1e437bbe9a98998f0b4bd9b66bbc3124be5db85
org-agenda.el: New agenda entry types :scheduled* and :deadline*

* org.el (org-deadline-time-hour-regexp)
(org-scheduled-time-hour-regexp): New buffer local variables.
(org-set-regexps-and-options): Set the new variables.

* org-agenda.el (org-agenda-custom-commands-local-options):
Add :deadline* and :scheduled* to the list of possible agenda
entry types.
(org-agenda): Implement a new agenda type agenda* with :scheduled*
and :deadline* replacing :scheduled and :deadline respectively in
agenda entry types.  In such agenda, only scheduled and deadline
items with a time specification [h]h:mm will be considered.
(org-agenda-entry-types): Document the new agenda entry types
:scheduled* and :deadline*.
(org-agenda-list): New parameter `with-hour'.  Use :scheduled* and
:deadline*.
(org-agenda-get-day-entries): Handle :scheduled* and :deadline*.
(org-agenda-get-deadlines, org-agenda-get-scheduled): New
parameter `with-hour'.  Use `org-deadline-time-hour-regexp' or
`org-scheduled-time-hour-regexp' as the search string if needed.
(org-agenda-to-appt): Use :scheduled* and :deadline* by default,
as other scheduled and deadline items don't have a time spec and
cannot be turned into appointments.  Trim bracket links and use
only the description as the appointment text.
(org-agenda-get-restriction-and-command): Add
default description for the agenda* view.
(org-agenda-run-series): Handle agenda* views.
lisp/org-agenda.el
lisp/org.el