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

David F. Skoll dfs at roaringpenguin.com
Thu Jul 14 12:55:51 EDT 2011


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.

Regards,

David.


More information about the Remind-fans mailing list