Use a new function to mark anniversaries in Org diary files
commit12d51dad7bde7e8907e3d4048b0510b666399a26
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 16 Jun 2011 09:05:17 +0000 (16 11:05 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 16 Jun 2011 12:34:07 +0000 (16 14:34 +0200)
tree3375d09c8370e880cea5495a51675e186eab7171
parent01ebf445aa8cbe687c8525043d0adafd2663f6be
Use a new function to mark anniversaries in Org diary files

* lisp/org-agenda.el (org-agenda-add-entry-to-org-agenda-diary-file):
Use stable internal `org-anniversary' instead of diary-anniversary.
(org-class): New function.
(org-diary-class): Use `org-class'.
(org-anniversary, org-cyclic, org-date, org-block): New functions.

This patch provides stable alternatives for a number of diary
functions to be used in diary sexp entries. The corresponding diary-*
functions swap around their input arguments depending on
`calendar-date-style', which is unstable and evil.  The functions
provided here have a fixed order of arguments, the ISO order: year
month day.

Also, the `i a' key in the agenda now uses `org-anniversary' instead of
diary-anniversary.
lisp/org-agenda.el