[Org] Remove old diary file before exporting new one
This commit is contained in:
parent
356bc7e044
commit
93fc26e426
|
@ -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.")))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue