emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* diary-remind, and org-agenda, and remember
@ 2009-09-10 23:15 Desmond Rivet
  2009-09-11  3:16 ` Matt Lundin
  0 siblings, 1 reply; 3+ messages in thread
From: Desmond Rivet @ 2009-09-10 23:15 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: diary-remind, and org-agenda, and remember
  2009-09-10 23:15 diary-remind, and org-agenda, and remember Desmond Rivet
@ 2009-09-11  3:16 ` Matt Lundin
  2009-09-11  3:49   ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Lundin @ 2009-09-11  3:16 UTC (permalink / raw)
  To: Desmond Rivet; +Cc: emacs-orgmode

Desmond Rivet <desmond.rivet@videotron.ca> 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.

Best,
Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: diary-remind, and org-agenda, and remember
  2009-09-11  3:16 ` Matt Lundin
@ 2009-09-11  3:49   ` Carsten Dominik
  0 siblings, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2009-09-11  3:49 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode


On Sep 11, 2009, at 5:16 AM, Matt Lundin wrote:

> Desmond Rivet <desmond.rivet@videotron.ca> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-11  3:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 23:15 diary-remind, and org-agenda, and remember Desmond Rivet
2009-09-11  3:16 ` Matt Lundin
2009-09-11  3:49   ` Carsten Dominik

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).