emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* schedule repeated reminder on multiple days for multiple weeks
@ 2010-02-19  9:47 Richard Riley
  2010-02-19 11:06 ` Carsten Dominik
  2010-02-19 11:30 ` Łukasz Stelmach
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Riley @ 2010-02-19  9:47 UTC (permalink / raw)
  To: emacs-orgmode


What would the best approach be to schedule something like a radio
program which is on monday to friday at a certain time for the next 20
weeks?

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

* Re: schedule repeated reminder on multiple days for multiple weeks
  2010-02-19  9:47 schedule repeated reminder on multiple days for multiple weeks Richard Riley
@ 2010-02-19 11:06 ` Carsten Dominik
  2010-02-19 11:30 ` Łukasz Stelmach
  1 sibling, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2010-02-19 11:06 UTC (permalink / raw)
  To: Richard Riley; +Cc: emacs-orgmode

Hi RIchard,

a good start would be the last example in

http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files

On Feb 19, 2010, at 10:47 AM, Richard Riley wrote:

>
> What would the best approach be to schedule something like a radio
> program which is on monday to friday at a certain time for the next 20
> weeks?
>

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

* Re: schedule repeated reminder on multiple days for multiple weeks
  2010-02-19  9:47 schedule repeated reminder on multiple days for multiple weeks Richard Riley
  2010-02-19 11:06 ` Carsten Dominik
@ 2010-02-19 11:30 ` Łukasz Stelmach
  2010-02-19 15:34   ` Richard Riley
  1 sibling, 1 reply; 5+ messages in thread
From: Łukasz Stelmach @ 2010-02-19 11:30 UTC (permalink / raw)
  To: emacs-orgmode

Richard Riley <rileyrgdev@gmail.com> writes:

> What would the best approach be to schedule something like a radio
> program which is on monday to friday at a certain time for the next 20
> weeks?

--8<---------------cut here---------------start------------->8---
* Incredible Radio Show 20:00-20:55
&%%(and 
     (and (< 0 (calendar-day-of-week date))
          (< (calendar-day-of-week date) 6))
      (diary-block 2010 3 1 2010 7 18))
--8<---------------cut here---------------end--------------->8---

The time is in the heading, you can use am/pm style too.

The "&%%(" introduces diray sexp (an elisp snippet evaluated during the
porcess of building agenda view). This one is true, which makes the
event appear, when all of following conditions ar met:

    + the day of week obtained with calendar day of week is greater than
      0 (0: sunday, 6: saturday), and less than 6.

    + the date is between 2010-03-01 (March 1) and 2010-07-18 (July 18)

Note that:

    + you have to calculate the end date by hand (maybe there is a
      function for this, but the sexp would be longer),

    + the order of numbers in diary block expression depends on the
      value of calendar-date-style variable. This one is iso style.


Refere to:
<info:(org)Timestamps>
<info:(org)Weekly/daily agenda>
<info:(emacs)Special Diary Entries>
<info:(org)Time-of-day specifications>
<info:(emacs)Date Formats>

-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: schedule repeated reminder on multiple days for multiple weeks
  2010-02-19 11:30 ` Łukasz Stelmach
@ 2010-02-19 15:34   ` Richard Riley
  2010-02-21  2:27     ` Richard Riley
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Riley @ 2010-02-19 15:34 UTC (permalink / raw)
  To: emacs-orgmode

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Richard Riley <rileyrgdev@gmail.com> writes:>
>> What would the best approach be to schedule something like a radio
>> program which is on monday to friday at a certain time for the next 20
>> weeks?
>
>
>
> * Incredible Radio Show 20:00-20:55
> &%%(and 
>      (and (< 0 (calendar-day-of-week date))
>           (< (calendar-day-of-week date) 6))
>       (diary-block 2010 3 1 2010 7 18))
>
>
>
> The time is in the heading, you can use am/pm style too.
>
> The "&%%(" introduces diray sexp (an elisp snippet evaluated during the
> porcess of building agenda view). This one is true, which makes the
> event appear, when all of following conditions ar met:
>
>     + the day of week obtained with calendar day of week is greater than
>       0 (0: sunday, 6: saturday), and less than 6.
>
>     + the date is between 2010-03-01 (March 1) and 2010-07-18 (July 18)
>
> Note that:
>
>     + you have to calculate the end date by hand (maybe there is a
>       function for this, but the sexp would be longer),
>
>     + the order of numbers in diary block expression depends on the
>       value of calendar-date-style variable. This one is iso style.
>
> Refere to:
> <info:(org)Timestamps>
> <info:(org)Weekly/daily agenda>
> <info:(emacs)Special Diary Entries>
> <info:(org)Time-of-day specifications>
> <info:(emacs)Date Formats>

Eek! ;) Thanks to both you and Carsten.

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

* Re: schedule repeated reminder on multiple days for multiple weeks
  2010-02-19 15:34   ` Richard Riley
@ 2010-02-21  2:27     ` Richard Riley
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Riley @ 2010-02-21  2:27 UTC (permalink / raw)
  To: emacs-orgmode

Richard Riley <rileyrgdev@gmail.com> writes:

> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>
>> Richard Riley <rileyrgdev@gmail.com> writes:>
>>> What would the best approach be to schedule something like a radio
>>> program which is on monday to friday at a certain time for the next 20
>>> weeks?
>>
>>
>>
>> * Incredible Radio Show 20:00-20:55
>> &%%(and 
>>      (and (< 0 (calendar-day-of-week date))
>>           (< (calendar-day-of-week date) 6))
>>       (diary-block 2010 3 1 2010 7 18))
>>
>>

Just to follow up on this, this format worked for me:

%%(and
     (and (< 0 (calendar-day-of-week date))
          (< (calendar-day-of-week date) 6))
      (diary-block 2 1 2010 7 18 2010)) History Of The World In 100 Objects (R4) 19:45-19:59

The actual text in the heading was ignored and the text to display must
follow the regexp.

regards,

r.

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

end of thread, other threads:[~2010-02-21  3:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19  9:47 schedule repeated reminder on multiple days for multiple weeks Richard Riley
2010-02-19 11:06 ` Carsten Dominik
2010-02-19 11:30 ` Łukasz Stelmach
2010-02-19 15:34   ` Richard Riley
2010-02-21  2:27     ` Richard Riley

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