Re: Could an "org-anniversary" be a PROPERTY?

2022-07-18 Thread Ihor Radchenko
Ypo  writes:

> It works! Thanks, Ihor.
>
> How could I've known? Should I've known?

The manual on diary integration (11.3.1 Weekly/daily agenda) says:

   If you are using the diary only for expression entries and holidays,
it is faster to not use the above setting, but instead to copy or even
move the entries into an Org file.  Org mode evaluates diary-style
expression entries, and does it faster because there is no overhead for
first creating the diary display.  Note that the expression entries must
   ^
start at the left margin, no whitespace is allowed before them, as seen
^^
in the following segment of an Org file:(2)

 * Holidays
   :PROPERTIES:
   :CATEGORY: Holiday
   :END:
 %%(org-calendar-holiday)   ; special function for holiday names

 * Birthdays
   :PROPERTIES:
   :CATEGORY: Ann
   :END:
 %%(org-anniversary 1956  5 14) Arthur Dent is %d years old
 %%(org-anniversary 1869 10  2) Mahatma Gandhi would be %d years old

I proposed something that is not a diary item, but that also allow
diary-sexp syntax: Diary-style expression entries (8.1 Timestamps):

Diary-style expression entries
 For more complex date specifications, Org mode supports using the
 special expression diary entries implemented in the Emacs Calendar
 package(2).  For example, with optional time:

  * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
<%%(diary-float t 4 2)>

Best,
Ihor



Re: Could an "org-anniversary" be a PROPERTY?

2022-07-17 Thread Ypo

It works! Thanks, Ihor.

How could I've known? Should I've known?



El 18/07/2022 a las 1:49, Ihor Radchenko escribió:

Ypo  writes:


I am starting to use org-contacts and wanted to unify my existing
"Birthdays" list, with the new formatted contacts I am creating.

Do the anniversaries have to be out of PROPERTIES?

Example: This is not "parsed into agenda":

:PROPERTIES:
:BDAY: %%(org-anniversary 1980 02 19)
:END:

Try

:BDAY: <%%(org-anniversary 1980 02 19)>

(diary sexp-style timestamp)

Best,
Ihor


Re: Could an "org-anniversary" be a PROPERTY?

2022-07-17 Thread Ihor Radchenko
Ypo  writes:

> I am starting to use org-contacts and wanted to unify my existing 
> "Birthdays" list, with the new formatted contacts I am creating.
>
> Do the anniversaries have to be out of PROPERTIES?
>
> Example: This is not "parsed into agenda":
>
> :PROPERTIES:
> :BDAY: %%(org-anniversary 1980 02 19)
> :END:

Try

:BDAY: <%%(org-anniversary 1980 02 19)>

(diary sexp-style timestamp)

Best,
Ihor