emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Tim O'Callaghan <tim.ocallaghan@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Re: iCal Import - updated code & Bug report
Date: Wed, 20 Jun 2007 11:49:02 +0200	[thread overview]
Message-ID: <a609059542ec587a5104438f39cc1f44@science.uva.nl> (raw)
In-Reply-To: <3d6808890706191552n30e3bc2er7c5701f0f38559ac@mail.gmail.com>

I am trying to find this bug and have made a google agenda.
How do I know which url to use to download it?  Can you guide me 
through this?

Thanks.

- Carsten
On Jun 20, 2007, at 0:52, Tim O'Callaghan wrote:

> Another Xemacs bug i think, If the org file does not contain a line
> with a headline, such as those generated by the code. It causes the
> error:
> "(1) (error/warning) Error in `post-command-hook' (setting hook to
> nil): (wrong-type-argument integer-or-marker-p nil)"
>
> The previous code assumes the ical export worked, below fixes that.
>
> Tim.
> ---- code ----
> (defun toc:goggle-to-org ()
>  "get a google calendar and convert it into org dates"
>  (interactive)
>  (with-temp-buffer
>    (let* ((glist google-ical-org-list))
>      ;; iterate through list
>      (while (setq entry (pop glist))
>        (setq google-ical-url (car entry) local-ical-file (nth 1
> entry) local-date-file (nth 2 entry))
>        ;; Delete the diary local files
>        (if (file-exists-p local-ical-file) (delete-file 
> local-ical-file))
>        (if (file-exists-p local-date-file) (delete-file 
> local-date-file))
>        ;; Get ical file
>        (w3-download-url google-ical-url (expand-file-name 
> local-ical-file))
>        ;; convert to diary without leading &
>        (icalendar-import-file local-ical-file local-date-file t)
>        ;; iCalendar leaves the buffers open
>        (if (find-buffer-visiting local-date-file) (kill-buffer
> (find-buffer-visiting local-date-file)))
>        (if (find-buffer-visiting local-ical-file) (kill-buffer
> (find-buffer-visiting local-ical-file)))
>        ))))
> --- code ---
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

  reply	other threads:[~2007-06-20  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 22:52 iCal Import - updated code & Bug report Tim O'Callaghan
2007-06-20  9:49 ` Carsten Dominik [this message]
2007-06-20 10:48   ` Tim O'Callaghan
2007-06-21  9:30     ` Carsten Dominik
2007-06-21 10:00       ` Tim O'Callaghan

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=a609059542ec587a5104438f39cc1f44@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=tim.ocallaghan@gmail.com \
    /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).