From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: How to include diary anniversary entries into default org-agenda? Date: Thu, 21 Dec 2017 15:52:28 +0800 Message-ID: <882c4f8b-6050-05b1-fe61-697dd4c3eb43@gmail.com> References: <87r2roplwd.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRvef-0002LU-7T for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 02:52:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRvea-0008TP-UF for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 02:52:37 -0500 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:35567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRvea-0008So-Oy for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 02:52:32 -0500 Received: by mail-it0-x22d.google.com with SMTP id f143so9841959itb.0 for ; Wed, 20 Dec 2017 23:52:32 -0800 (PST) Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id l12sm10232623iog.69.2017.12.20.23.52.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 23:52:31 -0800 (PST) In-Reply-To: <87r2roplwd.fsf@alphaville.usersys.redhat.com> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Sorry, that's my mis-type. You example works. Now the problem is: > #+begin_src org > ,* Anniversary > > ,** my first child anniversary > > %%(diary-anniversary 10 26 2017) > > ,** Funeral Arrangement > > ,*** kk > > %%(diary-anniversary 12 8 2007) > #+end_src Then org-agenda shows all headlines which has anniversary entry. Like: - Valentine's Day - My Birthday - my first child anniversary Without considering whether the anniversary date is a day past one year? (I think anniversary is by default repeat one year. Like org-mode timestamp repeat. <2017-12-21 Thu +1y>) I know there are other diary anniversary syntax like: - ~%%(diary-anniversary 3 24 2014)~ diary anniversary - ~%%(diary-cyclic 2 7 26 2014)~ repeated diary. - ~%%(diary-block 7 26 2014 8 26 2020)~ diary block - ~%%(diary-float t 5 1)~ happens every 1st Friday of the month. I checked out those syntax in Org-mode Info diary nod. This seems a little kind of off my original topic. On 12/21/2017 03:42 PM, Nick Dokos wrote: > "numbchild@gmail.com" writes: > >> I tried %%(org-anniversary 2016 12 21) Test anniversary. But this >> seems does not work. I tested with variable diary-file default value >> point to ~/.emacs.d/diary file. and has following content: >> >> ... >> >> %%(org-anniversary 2016 12 21) Test anniversary >> > Works fine here. Where are you adding this line? You have to put this > in an agenda file, otherwise it will not be processed. >