emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Could an "org-anniversary" be a PROPERTY?
       [not found] <mailman.39.1658073618.28878.emacs-orgmode@gnu.org>
@ 2022-07-17 17:51 ` Ypo
  2022-07-17 23:49   ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Ypo @ 2022-07-17 17:51 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

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:

BTW: Thanks for your advices with org-capture. I found too a very useful 
introductory video from Protesilaos (I wasn't able to understand the 
documentation till I watched this video): https://youtu.be/qCdScs4YO8k

[-- Attachment #2: Type: text/html, Size: 999 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Could an "org-anniversary" be a PROPERTY?
  2022-07-17 17:51 ` Could an "org-anniversary" be a PROPERTY? Ypo
@ 2022-07-17 23:49   ` Ihor Radchenko
  2022-07-18  6:27     ` Ypo
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2022-07-17 23:49 UTC (permalink / raw)
  To: Ypo; +Cc: emacs-orgmode

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Could an "org-anniversary" be a PROPERTY?
  2022-07-17 23:49   ` Ihor Radchenko
@ 2022-07-18  6:27     ` Ypo
  2022-07-18  7:02       ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Ypo @ 2022-07-18  6:27 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

It works! Thanks, Ihor.

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

<Best regards>

El 18/07/2022 a las 1:49, Ihor Radchenko escribió:
> Ypo<ypuntot@gmail.com>  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
>

[-- Attachment #2: Type: text/html, Size: 1295 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Could an "org-anniversary" be a PROPERTY?
  2022-07-18  6:27     ` Ypo
@ 2022-07-18  7:02       ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2022-07-18  7:02 UTC (permalink / raw)
  To: Ypo; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-18  7:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.39.1658073618.28878.emacs-orgmode@gnu.org>
2022-07-17 17:51 ` Could an "org-anniversary" be a PROPERTY? Ypo
2022-07-17 23:49   ` Ihor Radchenko
2022-07-18  6:27     ` Ypo
2022-07-18  7:02       ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).