[Remind-Fans] OMIT a range of dates

Mike Kelly pioto at pioto.org
Tue Aug 31 11:00:40 EDT 2010


On Tue, 31 Aug 2010 10:43:45 -0400
"David F. Skoll" <dfs at roaringpenguin.com> wrote:

> Mike Kelly wrote:
> 
> >   REM 01 Sep 2010 ++2 MSG %"Vacation%" %b%
> >   OMIT [trigger(trigdate())]
> >   REM 02 Sep 2010 ++2 MSG %"Vacation%" %b%
> >   OMIT [trigger(trigdate())]
> >   REM 03 Sep 2010 ++2 MSG %"Vacation%" %b%
> >   OMIT [trigger(trigdate())]
> 
> It's almost always a mistake to use OMIT [trigger(tridate())] because
> that can break the Remind algorithm.
> 
> If you are using Remind 3.1.9, you can use the new OMITFUNC keyword in
> your reminders (which is also a bit tedious.)  It would go something
> like this:
> 
> REM 1 Sep 2010 *1 ++2 UNTIL 3 Sep 2010 MSG %"Vacation%" %b%
> FSET _hol(x) isomitted(x) || (x >= '2010-09-01' && x <= '2010-09-03')
> 
> Then:
> 
> REM Wed OMITFUNC _hol SKIP MSG Important Meeting
> 
> Please read the Remind man page for caveats about OMITFUNC.

So, I'd have to add an OMITFUNC to all of my other REM lines,
basically? That's really really tedious, compared to the just tedious
way of doing things:

  REM 1 Sep 2010 MSG %"Vacation%" %b%
  OMIT 1 Sep 2010
  ...

I'll just make some vim macro to make that easier and call it a day I
guess.

-- 
Mike Kelly



More information about the Remind-fans mailing list