[Org] Delete ‘org-icalendar-combined-agenda-file’ before exporting diary

This commit is contained in:
Daniel - 2018-03-04 14:52:32 +01:00
parent 6187886bcf
commit df1fdd16cc
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 1 additions and 0 deletions

View File

@ -798,6 +798,7 @@ 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
(delete-file org-icalendar-combined-agenda-file)
(org-icalendar-combine-agenda-files)
(message "Exporting diary ... done."))))))