Hey,

I wrote a function to export scheduled, done tasks to iCalendar[1].

All works well, but I noticed that before the function is run, my agenda views only show upcoming scheduled tasks (I globally have agendas not show done scheduled or deadline items).

After org-icalendar--combine-files does its stuff, and works correctly, but my agendas suddenly have items such as "Sched.11x: DONE do something", despite it being a DONE task that I marked as complete over a week ago.

Any idea why org-agenda-skip-scheduled-if-done is seemingly being overridden to nil?
I have tried explicitly setting this value to true for the custom agenda view, but it doesn't help.

Any idea what's going on here?


Cheers,
Chris

[1]: https://github.com/chrispoole643/org-gtd/blob/443d43879d944bcec47af0ddac3d542bce6b2269/org-gtd.el#L146