emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Renato Pontefice <renato.pontefice@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: diary-anniversary doesn'work om Mac osx 12.6.3
Date: Mon, 30 Jan 2023 19:27:12 +0000	[thread overview]
Message-ID: <878rhj4ycv.fsf@localhost> (raw)
In-Reply-To: <C3411A1A-7719-4A44-89A8-AE6F5E0A7D28@gmail.com>

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>


      parent reply	other threads:[~2023-01-30 19:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-29 17:19 diary-anniversary doesn'work om Mac osx 12.6.3 Renato Pontefice
2023-01-30 13:46 ` Ihor Radchenko
2023-01-30 14:58   ` Renato Pontefice
2023-01-30 15:28     ` Gautier Ponsinet
2023-01-30 19:27     ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rhj4ycv.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=renato.pontefice@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).