diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index e594dea..1c27ad0 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -845,6 +845,9 @@ This is done only if the value of this variable is not null." ;; actual export; calls `org-release-buffers’ and may thus close ;; buffers we want to keep around … which is why we set ;; `org-agenda-new-buffers’ to nil + (when (file-exists-p org-icalendar-combined-agenda-file) + (delete-file org-icalendar-combined-agenda-file) + (sit-for 3)) (org-icalendar-combine-agenda-files) (message "Exporting diary ... done.")))))))