From 9b0067e16600eca0d653db2d1c7b4b57bfd5ef74 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 4 Jan 2014 14:26:19 +0100 Subject: [PATCH] ox-icalendar: Fix BBDB anniversaries integration * lisp/ox-icalendar.el (org-icalendar--combine-files): Make sure anniversaries do not end up in *Message* buffer instead of the ICS file. Patch-by: Thomas Baumann --- lisp/ox-icalendar.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index 7c4b4bfbc..89f1b5e4c 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -964,9 +964,7 @@ files to build the calendar from." ;; BBDB anniversaries. (when (and org-icalendar-include-bbdb-anniversaries (require 'org-bbdb nil t)) - (with-temp-buffer - (org-bbdb-anniv-export-ical) - (buffer-string))))))) + (with-output-to-string (org-bbdb-anniv-export-ical))))))) (run-hook-with-args 'org-icalendar-after-save-hook org-icalendar-combined-agenda-file)) (org-release-buffers org-agenda-new-buffers)))