From 66fdd7995556002c4b5061641dbac5c1a7788d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Sonderfeld?= Date: Mon, 10 Oct 2011 21:07:02 +0200 Subject: [PATCH 2/2] org-class: Skip entries on holidays. --- lisp/org-agenda.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index faca285..8fe9cc7 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4881,7 +4881,7 @@ This function is invoked if `org-agenda-todo-ignore-deadlines', "Entry applies if date is between dates on DAYNAME, but skips SKIP-WEEKS. DAYNAME is a number between 0 (Sunday) and 6 (Saturday). SKIP-WEEKS is any number of ISO weeks in the block period for which the item should -be skipped." +be skipped. Entries are also skipped if they happen on a holiday." (let* ((date1 (calendar-absolute-from-gregorian (list m1 d1 y1))) (date2 (calendar-absolute-from-gregorian (list m2 d2 y2))) (d (calendar-absolute-from-gregorian date))) @@ -4893,6 +4893,7 @@ be skipped." (progn (require 'cal-iso) (not (member (car (calendar-iso-from-absolute d)) skip-weeks)))) + (not (calendar-check-holidays date)) entry))) (defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname &rest skip-weeks) -- 1.7.7