[Org] Don’t delete diary before export

The original use case, namely an underlying git-annex repository in indirect
mode, has now been changed into an (experimental) v6 git-annex repository.
Let’s see how this works out.
This commit is contained in:
Daniel - 2018-03-25 20:59:58 +02:00
parent e235e9993c
commit 3189a3a0b1
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 0 additions and 2 deletions

View File

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