From mboxrd@z Thu Jan 1 00:00:00 1970 From: Desmond Rivet Subject: diary-remind, and org-agenda, and remember Date: Thu, 10 Sep 2009 19:15:46 -0400 Message-ID: <87hbva9ysd.fsf@zinc.branchcut.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlsqB-0007yd-Vx for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 19:14:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mlsq6-0007yN-MQ for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 19:14:10 -0400 Received: from [199.232.76.173] (port=36751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlsq6-0007yK-K7 for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 19:14:06 -0400 Received: from relais.videotron.ca ([24.201.245.36]:56130) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mlsq6-0000cW-Cu for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 19:14:06 -0400 Received: from zinc.branchcut.ath.cx ([74.59.195.158]) by VL-MO-MR003.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KPS007SG37H3U60@VL-MO-MR003.ip.videotron.ca> for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 19:14:05 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I'm trying to implement a quick and easy way to add birthday reminder functionality to my orgmode setup. For this purpose, I've been using sexp's like this (for example): %%(diary-remind '(diary-date 9 20 t) -14) John's birthday.. When these appear in an org file, I get a reminder in the agenda timeline view everyday for 14 days preceding the date in question. Seems to work okay. I have, however, been noticing some weirdness. Or maybe I just misunderstand how this all works. For example, this will work in an org file (the reminders show up on the agenda): * Birthdays %%(diary-remind '(diary-date 1 6 t) -14) Suzie's birthday. %%(diary-remind '(diary-date 11 5 t) -14) John's birthday. But this will *not* work in an org file (the reminders do *not* show up): * Birthdays ** %%(diary-remind '(diary-date 1 6 t) -14) Suzie's birthday. ** %%(diary-remind '(diary-date 11 5 t) -14) John's birthday. I'm using the latest orgmode from the repository. Anyway, this normally wouldn't be too much of a bother except that I'm experimenting with org-remember to add the dates, and this seems to have its own problems. (I was recently having trouble with using '%' signs in the org remember templates, but this particular problem has been solved. Thanks!) For example, when I have this in my dates.org file: * Birthday %%(diary-remind '(diary-date 1 6 t) -14) Suzie's birthday. %%(diary-remind '(diary-date 11 5 t) -14) John's birthday. with a remember template that looks like this: (setq org-remember-templates '( ("Birthday" ?b "%\\%(diary-remind '(diary-date %^{Month} %^{Day} t) -%^{Remind days}) %^{Brief Description}%?" "~/pim/gtd/dates.org" "Birthdays") ) ) then I get this when I finish with C-c C-c: * Birthdays %%(diary-remind '(diary-date 1 6 t) -14) Suzie's birthday. %%(diary-remind '(diary-date 11 5 t) -14) John's birthday. ** Thu Sep 10 19:06:55 2009 (%%(diary-remind '(diary-date 12 12 t) -12) 12) %%(diary-remind '(diary-date 12 12 t) -12) 12 This is not what I was expecting. I'm not sure what's happening there. Of course, if I set up my dates.org to look like this: * Birthdays ** %%(diary-remind '(diary-date 1 6 t) -14) Suzie's birthday. ** %%(diary-remind '(diary-date 11 5 t) -14) John's birthday. and set up my remember template like this: (setq org-remember-templates '( ("Birthday" ?b "* %\\%(diary-remind '(diary-date %^{Month} %^{Day} t) -%^{Remind days}) %^{Brief Description}%?" "~/pim/gtd/dates.org" "Birthdays") ) ) I get this in dates.org when I press C-c C-c: * Birthdays ** %%(diary-remind '(diary-date 1 6 t) -14) Suzie's birthday. ** %%(diary-remind '(diary-date 11 5 t) -14) John's birthday. ** %%(diary-remind '(diary-date 12 12 t) -12) New birthday Which would be okay except that, as noted above, org agenda doesn't seem to pick up on these kinds of dates when they're in a heading. Perhaps remember isn't the right tool for this? Any advice is appreciated. Thanks in advance! -- Desmond Rivet Pain is weakness leaving the body.