[Remind-Fans] Omit specific days in entries with OMITFUNC

Jostein Berntsen jbernts at broadpark.no
Thu Jul 14 13:22:24 EDT 2011


On 14.07.11,12:55, David F. Skoll wrote:
> On Thu, 14 Jul 2011 18:35:32 +0200
> Jostein Berntsen <jbernts at broadpark.no> wrote:
> 
> > I have tested this function, but it does not seem to work when there
> > is an OMITFUNC after skip. 
> 
> From the remind man page:
> 
>        Note  that if you use OMITFUNC, then a local OMIT is ignored as are all
>        global OMITs.  If you want to omit specific weekdays, your  omit  func-
>        tion will need to test for them specifically.  If you want to take into
>        account the global OMIT context, then your omit function will  need  to
>        test for that explicitly (using the isomitted() function.)
> 
> So your vacation_2010 function needs to be defined something like:
> 
> FSET vacation_2010(x) isomitted(x) || (your_normal_logic_here)
> 
> and it will work.
> 

This seems to work great, thanks!


Jostein


More information about the Remind-fans mailing list