emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ihor Radchenko
Subject: Re: Could an "org-anniversary" be a PROPERTY?
Date: Mon, 18 Jul 2022 15:02:28 +0800

Ypo <ypuntot@gmail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]