[Orgmode] Re: schedule repeated reminder on multiple days for multiple weeks
Richard Riley rileyrg...@gmail.com writes: Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Richard Riley rileyrg...@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. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: schedule repeated reminder on multiple days for multiple weeks
Richard Riley rileyrg...@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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: schedule repeated reminder on multiple days for multiple weeks
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Richard Riley rileyrg...@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. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode