From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] org-caldav-sync broken if entries have tables? Date: Wed, 11 Sep 2013 12:17:23 +0100 Message-ID: <87ioy74ngc.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJiQV-0008O1-NX for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 07:17:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJiQP-0007UG-Aj for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 07:17:39 -0400 Received: from mail14-db8on0066.outbound.messaging.microsoft.com ([157.55.206.66]:37907 helo=DB8EHSNDR004.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJiQP-0007Tk-2B for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 07:17:33 -0400 Received: from mail4-db8 (localhost [127.0.0.1]) by mail4-db8-R.bigfish.com (Postfix) with ESMTP id BC6DF90010D for ; Wed, 11 Sep 2013 11:17:31 +0000 (UTC) Received: from DB8EHSMHS025.bigfish.com (unknown [10.174.8.243]) by mail4-db8.bigfish.com (Postfix) with ESMTP id 858AD4C004A for ; Wed, 11 Sep 2013 11:17:29 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I have just upgraded both org and org-caldav and now I can no longer sync to my Google calendar. I get the following error: Debugger entered--Lisp error: (args-out-of-range [left left right left] 4) org-export-table-cell-alignment((table-cell (:begin 49232 :end 49241 org-ascii-table-cell((table-cell (:begin 49232 :end 49241 org-export-data((table-cell (:begin 49232 :end 49241 ... org-export-data((org-data nil (section (:begin 1 :end 103 org-export-as(icalendar nil nil t (:ascii-charset utf-8 :icalendar-agenda-view nil)) ... org-icalendar--combine-files(nil "~/s/notes/diary.org" "~/s/notes/googlecalendar.org") apply(org-icalendar--combine-files nil ("~/s/notes/diary.org" "~/s/notes/googlecalendar.org")) (if (featurep (quote ox-icalendar)) (apply (quote org-icalendar--combine-files) nil orgfiles) (apply (quote org-export-icalendar) t orgfiles)) (let ((icalendar-file (if (featurep (quote ox-icalendar)) (quote org-icalendar-combined-agenda-file) (quote org-combined-agenda-icalendar-file))) (orgfiles (append org-caldav-files (list org-caldav-inbox))) (org-icalendar-store-UID t) (org-icalendar-include-bbdb-anniversaries nil) (icalendar-uid-format "orgsexp-%h") (org-icalendar-date-time-format (cond ((and org-icalendar-timezone (string= org-icalendar-timezone "UTC")) ":%Y%m%dT%H%M%SZ") (org-icalendar-timezone ";TZID=%Z:%Y%m%dT%H%M%S") (t ":%Y%m%dT%H%M%S")))) (set icalendar-file (make-temp-file "org-caldav-")) (org-caldav-debug-print 1 (format "Generating ICS file %s." (symbol-value icalendar-file))) (if (featurep (quote ox-icalendar)) (apply (quote org-icalendar--combine-files) nil orgfiles) (apply (quote org-export-icalendar) t orgf iles)) (find-file-noselect (symbol-value icalendar-file))) org-caldav-generate-ics() (setq org-caldav-ics-buffer (org-caldav-generate-ics)) (if (and org-caldav-event-list (y-or-n-p "Last sync seems to have been aborted. Should I try to resume? ")) nil (setq org-caldav-ics-buffer (org-caldav-generate-ics)) (setq org-caldav-event-list nil) (setq org-caldav-sync-result nil) (org-caldav-load-sync-state) (progn (let ((--dolist-tail-- org-caldav-event-list) cur) (while --dolist-tail-- (setq cur (car --dolist-tail--)) (org-caldav-event-set-status cur nil) (setq --dolist-tail-- (cdr --dolist-tail--))))) (org-caldav-update-eventdb-from-org org-caldav-ics-buffer) (org-caldav-update-eventdb-from-cal)) org-caldav-sync() call-interactively(org-caldav-sync nil nil) command-execute(org-caldav-sync) There is nothing particularly strange about the table found at location 49232 in my diary. Deleting the table and one other, possibly leaving no tables in my diary, allows syncing to work again. thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5