On 6 Mar 2011, at 11:33, Konrad Hinsen wrote:
Fortunately, because apparently org-agenda-skip-function is not
called for diary-style entries. But I'll continue exploring that
approach for other types of entries.
That was relatively easy as well:
(defun org-agenda-day-view-only-filter ()
(let ((subtree-end (save-excursion (org-end-of-subtree t)))
(day-view-only (org-entry-get nil "day-view-only" t)))
(if day-view-only
(if (eq span 'day)
nil
subtree-end)
nil)))
(setq org-agenda-skip-function-global 'org-agenda-day-view-only-filter)
The agenda items eliminated from the week views are marked with:
:PROPERTIES:
:day-view-only: t
:END:
I put the filter on the global skip function, but others may prefer to
use a custom agenda view.
Konrad.