From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul R Subject: Bug in export to iCal : one solution Date: Thu, 12 Jun 2008 21:23:20 +0200 Message-ID: <873anitq3b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6sON-0005Vk-8m for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 15:23:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6sOK-0005UE-OU for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 15:23:24 -0400 Received: from [199.232.76.173] (port=45801 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6sOK-0005U4-GR for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 15:23:24 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]:60211) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6sOK-0003Em-4h for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 15:23:24 -0400 Received: by fg-out-1718.google.com with SMTP id l26so3164577fgb.30 for ; Thu, 12 Jun 2008 12:23:22 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I finaly tracked in down, while sitting in the train. I hope I'll have enough battery life to give explaination here, and that I'll find some wireless spot tonight to send this report. Here is a simplified stack of exporting to ical : - org-export-icalendar-combine-agenda-files `- org-export-icalendar `- org-print-icalendar-entries `- (org-diary-to-ical-string sexp-buffer) in org-exp.el:3791 A look at org-diary-to-ical-string shows : ,---- | (defun org-diary-to-ical-string (frombuf) | "Get iCalendar entries from diary entries in buffer FROMBUF. | This uses the icalendar.el library." `---- then at the end of this function : (kill-buffer frombuf) This line is incriminated. Although I have a very limited understanding of how the export procedure works, I think it can be replaced by something like : (with-current-buffer frombuf (erase-buffer)) or, the "ical-tmp" buffer should be re-created by some mean in the loop. I don't understand how it can work for some people, though ... :) -- Paul