ox-icalendar: Speed up `org-agenda-write' process
commit67ae102b4be87976240555d1c0d80ee55906f53c
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 25 Aug 2014 22:08:38 +0000 (26 00:08 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 26 Aug 2014 00:14:18 +0000 (26 02:14 +0200)
tree18e0aa97562fbb17df9ca23aa331628b36195f56
parent6987059a205cae5d0470115322539876ed2868c8
ox-icalendar: Speed up `org-agenda-write' process

* lisp/ox-icalendar.el (org-icalendar-create-uid): Remove unused
  optional argument.
(org-icalendar--combine-files): Change signature.  Simplify process.
(org-icalendar-combine-agenda-files): Apply signature change. Do not
check anymore ICALENDAR-MARK property.
(org-icalendar-entry): Do not check anymore ICALENDAR-MARK property.
(org-icalendar-export-to-ics): Comply to comments.
(org-icalendar-export-current-agenda): Rewrite function.

* lisp/org-agenda.el (org-agenda-write): Update docstring.

Instead of parsing every agenda before picking up needed entries, copy
these entries in a temporary buffer, then export it.
lisp/org-agenda.el
lisp/ox-icalendar.el