emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul R <paul.r.ml@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug in export to iCal : one solution
Date: Thu, 12 Jun 2008 21:23:20 +0200	[thread overview]
Message-ID: <873anitq3b.fsf@gmail.com> (raw)

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

             reply	other threads:[~2008-06-12 19:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12 19:23 Paul R [this message]
2008-06-13  8:43 ` Bug in export to iCal : one solution Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873anitq3b.fsf@gmail.com \
    --to=paul.r.ml@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).