Hello,

Chris Poole <li...@chrispoole.com> writes:

> 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?

"ox-icalendar" ignores "org-agenda" functions. I think a better way to
achieve what you want would be to

  1. generate an agenda view with exactly the tasks you want,
  2. call `org-icalendar-export-current-agenda' on this buffer.


Regards,

-- 
Nicolas Goaziou

Reply via email to