From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: diary-remind, and org-agenda, and remember Date: Fri, 11 Sep 2009 05:49:33 +0200 Message-ID: References: <87hbva9ysd.fsf@zinc.branchcut.ath.cx> <874oratbm2.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mlx8s-0004B2-BB for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 23:49:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mlx8n-00046x-FO for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 23:49:45 -0400 Received: from [199.232.76.173] (port=35132 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlx8n-00046f-6y for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 23:49:41 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:45301) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mlx8m-0006JH-GE for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 23:49:41 -0400 In-Reply-To: <874oratbm2.fsf@fastmail.fm> 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: Matt Lundin Cc: emacs-orgmode@gnu.org On Sep 11, 2009, at 5:16 AM, Matt Lundin wrote: > Desmond Rivet writes: >> >> 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 >> > > I think org-remember automatically adds a heading for purposes of > filing. Otherwise remember items could easily get lost. > > Would something like this work? > > --8<---------------cut here---------------start------------->8--- > (setq org-remember-templates > '( > ("Birthday" ?b "* %^{Title}\n %\\%(diary-remind '(diary- > date %^{Month} %^{Day} t) %^{Remind days}) %^{Brief Description} > %?" "~/pim/gtd/dates.org" "Birthdays") > ) > ) > --8<---------------cut here---------------end--------------->8--- > > I'm wondering, though, whether it wouldn't be easier to navigate to > the > birthdays heading and simply kill, yank, and edit to create a new > birthday, e.g., > > --8<---------------cut here---------------start------------->8--- > * Birthday > %%(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 3 5 t) -14) George's birthday. > --8<---------------cut here---------------end--------------->8--- > > Adding George's birthday just took me only a few seconds. Good point. How often during a day do you hear about a new birthday you need to add? Remember is really for repetitive stuff one does all the time. Setting up a remember template for this tasks takes probably more time than it will ever save you. Desmond, if you insist: Use a separate file for these, and use the symbol `bottom' as the headline specification. - Carsten