[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diary-anniversary doesn'work om Mac osx 12.6.3
From: |
Ihor Radchenko |
Subject: |
Re: diary-anniversary doesn'work om Mac osx 12.6.3 |
Date: |
Mon, 30 Jan 2023 19:27:12 +0000 |
Renato Pontefice <renato.pontefice@gmail.com> writes:
> * Anniversaries
> %%(diary-anniversary 1948 01 30) Arthur's birthday (%d years old)
>
> %%(diary-anniversary 2023-01-30) Arthur's birthday (%d years old)
>
> <2023-01-30 Mon 15:53>
> Just this. The last line is made by C-u-c .
> To display the way my date are setted
>
> If I press C a a
> Emacs compose the agenda (as in the attached file, but without the entry of
> Arthur birthday
I tried the above and can hear error being signalled:
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(1 30 2023))) (diary-anniversary 2023-01-30))
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(1 31 2023))) (diary-anniversary 2023-01-30))
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(2 1 2023))) (diary-anniversary 2023-01-30))
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(2 2 2023))) (diary-anniversary 2023-01-30))
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(2 3 2023))) (diary-anniversary 2023-01-30))
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(2 4 2023))) (diary-anniversary 2023-01-30))
Bad sexp at line 4 in /tmp/bug.org: (let ((entry Arthur's birthday (%d years
old)) (date '(2 5 2023))) (diary-anniversary 2023-01-30))
Your diary entries have wrong format.
If you do <f1> f diary-anniversary <RET>, you will see
(diary-anniversary MONTH DAY &optional YEAR MARK)
So, the correct entries will be
%%(diary-anniversary 01 30 1948) Arthur's birthday (%d years old)
%%(diary-anniversary 01 30 2023) Arthur's birthday (%d years old)
org-anniversary uses more conventional year-month-day order:
%%(org-anniversary 1948 01 30) Arthur's birthday (%d years old)
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>