[Org] Fix issue of ‘nil’ file names when exporting diary

This commit is contained in:
Daniel - 2017-10-08 16:33:43 +02:00
parent 98bcd19b72
commit b3151704de
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ _y_: ?y? year _q_: quit _L__l__c_: ?l?
(message "Exporting diary ...")
;; open files manually to avoid polluting `org-agenda-new-buffers; we dont
;; want these buffers to be closed after exporting
(mapc #'find-file-noselect org-agenda-files)
(mapc #'find-file-noselect (cl-remove-if #'null org-agenda-files))
;; 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