all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gnus-icalendar errors in emacs 24.5
@ 2016-02-22 18:48 Kostas Zorbadelos
  0 siblings, 0 replies; 7+ messages in thread
From: Kostas Zorbadelos @ 2016-02-22 18:48 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]


Greetings to all,

this is my first post to the list. I am not sure if this is a bug or I
am doing something wrong config-wise.
I upgraded to emacs 24.5 (built from source on an Ubuntu 14.04.4 LTS)
just to have the functionality of gnus-icalendar and be able to save
calendar invitations from gnus to org files and view them in agenda.
My (relevant) config:

.emacs
...
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(setq org-directory "~/org/")
(setq org-agenda-files "calendar.org")
(setq org-agenda-archives-mode t)

.gnus.el
...
;; gnus icalendar handling
(require 'gnus-icalendar)
(gnus-icalendar-setup)
;; to enable optional iCalendar->Org sync functionality
;; NOTE: both the capture file and the headline(s) inside must already exist
(setq gnus-icalendar-org-capture-file "~/org/calendar.org")
(setq gnus-icalendar-org-capture-headline '("Calendar"))
(gnus-icalendar-org-setup)

Org file exists and has a 'Calendar' headline.
On export of a calendar mail (attached the calendar MIME part) I get the
attached backtrace. I get the same backtrace even when I send a gmail
calendar invitation. Any suggestions?

Regards,
Kostas

-- 
Kostas Zorbadelos	http://gr.linkedin.com/in/kzorba	


[-- Attachment #2: calendar-bug.txt --]
[-- Type: text/plain, Size: 1480 bytes --]

BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VTIMEZONE
TZID:Europe/Athens
BEGIN:DAYLIGHT
TZOFFSETFROM:+0200
TZOFFSETTO:+0300
TZNAME:EEST
DTSTART:19700329T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0300
TZOFFSETTO:+0200
TZNAME:EET
DTSTART:19701025T040000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20160219T131749Z
LAST-MODIFIED:20160219T133902Z
DTSTAMP:20160219T133902Z
UID:79e1cd45-012e-4305-869d-56367a5183aa
SUMMARY:Farewell_IP_Planning#2
ORGANIZER;RSVP=TRUE;CN=Thodoris Vasilopoulos;PARTSTAT=ACCEPTED;ROLE=CHAIR:
 mailto:tvasilopo@otenet.gr
ATTENDEE;RSVP=TRUE;CN=ip_planning@otenet.gr;PARTSTAT=NEEDS-ACTION;ROLE=REQ
 -PARTICIPANT:mailto:ip_planning@otenet.gr
DTSTART;TZID=Europe/Athens:20160224T200000
DTEND;TZID=Europe/Athens:20160225T050000
TRANSP:OPAQUE
LOCATION:"ΤΑΚΗ 13"\, ΨΥΡΡΗ
DESCRIPTION:Μουσική Βραδιά  πριν τον οριστικό 
 "αποχωρισμό". \nΤο μαγαζί είναι ένα μικρό 
 μεζεδοπωλείο στου Ψυρρή\, οδός Τάκη 13.\nΌσ
 οι θέλουν δοκιμάζουν τις φωνητικές τους 
 ικανότητες! \nΠείτε μου μέχρι Τρίτη όσοι 
 μπορείτε/θέλετε να έρθετε να κλείσω τραπ
 έζι.
END:VEVENT
END:VCALENDAR


[-- Attachment #3: backtrace.txt --]
[-- Type: text/plain, Size: 18693 bytes --]

Debugger entered--Lisp error: (error "Invalid date: 2016-02-25 Πεμ")
  signal(error ("Invalid date: 2016-02-25 Πεμ"))
  error("Invalid date: %s" "2016-02-25 Πεμ")
  byte-code("\300\301\302\217\207" [nil (byte-code "\301\302\303\304\b!!\"\207" [date apply encode-time parse-time-string timezone-make-date-arpa-standard] 5) ((error (error "Invalid date: %s" date)))] 3)
  date-to-time("2016-02-25 Πεμ")
  #[(event) "\306\b!\x19\307\b!\x1a\310\311	\"^[\310\312	\"\211\x1c\313\230\x1d\310\311\n\"\x1e\x1f\310\312\n\"\211\x1e \313\230\x1e!\314\315\316\x0e\x1f!\316\v!\"!\317\245\x1e\"\320\b!\211\x1e#\203F\0\321\x0e#P\202G\0\322\x1e$\323\x1e%\r\203y\0\x0e!\203y\0\x0e\"\324V\203p\0\310\311\315\n\x0e%\"\"\x1e&\325\326\v\x0e&#)\202\331\0\325\327\v\x0e$#\202\331\0\x0e!\203\244\0\x0e\"\324U\203\217\0\325\330\v\f\x0e$$\202\331\0\310\311\315\n\x0e%\"\"\x1e&\325\331\v\f\x0e&$)\202\331\0\r\203\275\0\x0e\"\211\332V\262\x01\203\275\0\325\333\v\x0e\x1f\x0e $\202\331\0\334\x0e\"!\203\320\0\325\335\v\f\x0e \x0e$%\202\331\0\325\336\v\f\x0e\x1f\x0e %.\f\207" [event start end start-date start-time start-at-midnight gnus-icalendar-event:start-time gnus-icalendar-event:end-time format-time-string "%Y-%m-%d %a" "%H:%M" "00:00" float-time time-subtract date-to-time 86400 gnus-icalendar-event:org-repeat " " "" (0 86400) 1 format "<%s>--<%s>" "<%s%s>" "<%s %s-23:59%s>" "<%s %s>--<%s>" 0 "<%s>--<%s %s>" zerop "<%s %s-%s%s>" "<%s %s>--<%s %s>" end-date end-time end-at-midnight start-end-date-diff org-repeat repeat time-1-day end-ts] 7 "Build `org-mode' timestamp from EVENT start/end dates and recurrence info."]([object gnus-icalendar-event-request "gnus-icalendar-event-request" "tvasilopo@otenet.gr" "Farewell_IP_Planning#2" "\316\234\316\277\317\205\317\203\316\271\316\272\316\256 \316\222\317\201\316\261\316\264\316\271\316\254  \317\200\317\201\316\271\316\275 \317\204\316\277\316\275 \316\277\317\201\316\271\317\203\317\204\316\271\316\272\317\214 \"\316\261\317\200\316\277\317\207\317\211\317\201\316\271\317\203\316\274\317\214\". \n\316\244\316\277 \316\274\316\261\316\263\316\261\316\266\316\257 \316\265\316\257\316\275\316\261\316\271 \316\255\316\275\316\261 \316\274\316\271\316\272\317\201\317\214 \316\274\316\265\316\266\316\265\316\264\316\277\317\200\317\211\316\273\316\265\316\257\316\277 \317\203\317\204\316\277\317\205 \316\250\317\205\317\201\317\201\316\256, \316\277\316\264\317\214\317\202 \316\244\316\254\316\272\316\267 13.\n\316\214\317\203\316\277\316\271 \316\270\316\255\316\273\316\277\317\205\316\275 \316\264\316\277\316\272\316\271\316\274\316\254\316\266\316\277\317\205\316\275 \317\204\316\271\317\202 \317\206\317\211\316\275\316\267\317\204\316\271\316\272\316\255\317\202 \317\204\316\277\317\205\317\202 \316\271\316\272\316\261\316\275\317\214\317\204\316\267\317\204\316\265\317\202! \n\316\240\316\265\316\257\317\204\316\265 \316\274\316\277\317\205 \316\274\316\255\317\207\317\201\316\271 \316\244\317\201\316\257\317\204\316\267 \317\214\317\203\316\277\316\271 \316\274\317\200\316\277\317\201\316\265\316\257\317\204\316\265/\316\270\316\255\316\273\316\265\317\204\316\265 \316\275\316\261 \316\255\317\201\316\270\316\265\317\204\316\265 \316\275\316\261 \316\272\316\273\316\265\316\257\317\203\317\211 \317\204\317\201\316\261\317\200\316\255\316\266\316\271." "\"\316\244\316\221\316\232\316\227 13\", \316\250\316\245\316\241\316\241\316\227" (22221 61344) (22222 28208) nil "79e1cd45-012e-4305-869d-56367a5183aa" "REQUEST" nil non-participant ("ip_planning@otenet.gr") nil])
  apply(#[(event) "\306\b!\x19\307\b!\x1a\310\311	\"^[\310\312	\"\211\x1c\313\230\x1d\310\311\n\"\x1e\x1f\310\312\n\"\211\x1e \313\230\x1e!\314\315\316\x0e\x1f!\316\v!\"!\317\245\x1e\"\320\b!\211\x1e#\203F\0\321\x0e#P\202G\0\322\x1e$\323\x1e%\r\203y\0\x0e!\203y\0\x0e\"\324V\203p\0\310\311\315\n\x0e%\"\"\x1e&\325\326\v\x0e&#)\202\331\0\325\327\v\x0e$#\202\331\0\x0e!\203\244\0\x0e\"\324U\203\217\0\325\330\v\f\x0e$$\202\331\0\310\311\315\n\x0e%\"\"\x1e&\325\331\v\f\x0e&$)\202\331\0\r\203\275\0\x0e\"\211\332V\262\x01\203\275\0\325\333\v\x0e\x1f\x0e $\202\331\0\334\x0e\"!\203\320\0\325\335\v\f\x0e \x0e$%\202\331\0\325\336\v\f\x0e\x1f\x0e %.\f\207" [event start end start-date start-time start-at-midnight gnus-icalendar-event:start-time gnus-icalendar-event:end-time format-time-string "%Y-%m-%d %a" "%H:%M" "00:00" float-time time-subtract date-to-time 86400 gnus-icalendar-event:org-repeat " " "" (0 86400) 1 format "<%s>--<%s>" "<%s%s>" "<%s %s-23:59%s>" "<%s %s>--<%s>" 0 "<%s>--<%s %s>" zerop "<%s %s-%s%s>" "<%s %s>--<%s %s>" end-date end-time end-at-midnight start-end-date-diff org-repeat repeat time-1-day end-ts] 7 "Build `org-mode' timestamp from EVENT start/end dates and recurrence info."] [object gnus-icalendar-event-request "gnus-icalendar-event-request" "tvasilopo@otenet.gr" "Farewell_IP_Planning#2" "\316\234\316\277\317\205\317\203\316\271\316\272\316\256 \316\222\317\201\316\261\316\264\316\271\316\254  \317\200\317\201\316\271\316\275 \317\204\316\277\316\275 \316\277\317\201\316\271\317\203\317\204\316\271\316\272\317\214 \"\316\261\317\200\316\277\317\207\317\211\317\201\316\271\317\203\316\274\317\214\". \n\316\244\316\277 \316\274\316\261\316\263\316\261\316\266\316\257 \316\265\316\257\316\275\316\261\316\271 \316\255\316\275\316\261 \316\274\316\271\316\272\317\201\317\214 \316\274\316\265\316\266\316\265\316\264\316\277\317\200\317\211\316\273\316\265\316\257\316\277 \317\203\317\204\316\277\317\205 \316\250\317\205\317\201\317\201\316\256, \316\277\316\264\317\214\317\202 \316\244\316\254\316\272\316\267 13.\n\316\214\317\203\316\277\316\271 \316\270\316\255\316\273\316\277\317\205\316\275 \316\264\316\277\316\272\316\271\316\274\316\254\316\266\316\277\317\205\316\275 \317\204\316\271\317\202 \317\206\317\211\316\275\316\267\317\204\316\271\316\272\316\255\317\202 \317\204\316\277\317\205\317\202 \316\271\316\272\316\261\316\275\317\214\317\204\316\267\317\204\316\265\317\202! \n\316\240\316\265\316\257\317\204\316\265 \316\274\316\277\317\205 \316\274\316\255\317\207\317\201\316\271 \316\244\317\201\316\257\317\204\316\267 \317\214\317\203\316\277\316\271 \316\274\317\200\316\277\317\201\316\265\316\257\317\204\316\265/\316\270\316\255\316\273\316\265\317\204\316\265 \316\275\316\261 \316\255\317\201\316\270\316\265\317\204\316\265 \316\275\316\261 \316\272\316\273\316\265\316\257\317\203\317\211 \317\204\317\201\316\261\317\200\316\255\316\266\316\271." "\"\316\244\316\221\316\232\316\227 13\", \316\250\316\245\316\241\316\241\316\227" (22221 61344) (22222 28208) nil "79e1cd45-012e-4305-869d-56367a5183aa" "REQUEST" nil non-participant ("ip_planning@otenet.gr") nil])
  gnus-icalendar-event:org-timestamp([object gnus-icalendar-event-request "gnus-icalendar-event-request" "tvasilopo@otenet.gr" "Farewell_IP_Planning#2" "\316\234\316\277\317\205\317\203\316\271\316\272\316\256 \316\222\317\201\316\261\316\264\316\271\316\254  \317\200\317\201\316\271\316\275 \317\204\316\277\316\275 \316\277\317\201\316\271\317\203\317\204\316\271\316\272\317\214 \"\316\261\317\200\316\277\317\207\317\211\317\201\316\271\317\203\316\274\317\214\". \n\316\244\316\277 \316\274\316\261\316\263\316\261\316\266\316\257 \316\265\316\257\316\275\316\261\316\271 \316\255\316\275\316\261 \316\274\316\271\316\272\317\201\317\214 \316\274\316\265\316\266\316\265\316\264\316\277\317\200\317\211\316\273\316\265\316\257\316\277 \317\203\317\204\316\277\317\205 \316\250\317\205\317\201\317\201\316\256, \316\277\316\264\317\214\317\202 \316\244\316\254\316\272\316\267 13.\n\316\214\317\203\316\277\316\271 \316\270\316\255\316\273\316\277\317\205\316\275 \316\264\316\277\316\272\316\271\316\274\316\254\316\266\316\277\317\205\316\275 \317\204\316\271\317\202 \317\206\317\211\316\275\316\267\317\204\316\271\316\272\316\255\317\202 \317\204\316\277\317\205\317\202 \316\271\316\272\316\261\316\275\317\214\317\204\316\267\317\204\316\265\317\202! \n\316\240\316\265\316\257\317\204\316\265 \316\274\316\277\317\205 \316\274\316\255\317\207\317\201\316\271 \316\244\317\201\316\257\317\204\316\267 \317\214\317\203\316\277\316\271 \316\274\317\200\316\277\317\201\316\265\316\257\317\204\316\265/\316\270\316\255\316\273\316\265\317\204\316\265 \316\275\316\261 \316\255\317\201\316\270\316\265\317\204\316\265 \316\275\316\261 \316\272\316\273\316\265\316\257\317\203\317\211 \317\204\317\201\316\261\317\200\316\255\316\266\316\271." "\"\316\244\316\221\316\232\316\227 13\", \316\250\316\245\316\241\316\241\316\227" (22221 61344) (22222 28208) nil "79e1cd45-012e-4305-869d-56367a5183aa" "REQUEST" nil non-participant ("ip_planning@otenet.gr") nil])
  #[(event &optional reply-status) "\304\x18\305\x10\306\307	\310\"D\311\307	\312\"\206\x13\0\313D\314\315	!D\316\307	\317\"D\320\307	\321\"\322=\203-\0\323\2025\0\324\325\307	\321\"!!D\326\307	\327\"D\257\x06\x1a\330	!\204X\0\307	\331\"\203X\0\332\n\333\v\206T\0\334DC\"\x12\335\b\n\336#\337\307	\340\"Q*\207" [--cl-format-header-- event headers reply-status nil #[(x) "\301\302\303\b@\304P\305\306#\b\211A@\262\x01#\207" [x format "%-12s%s" propertize ":" face bold] 6] "Summary" slot-value summary "Location" location "" "Time" gnus-icalendar-event:org-timestamp "Organizer" organizer "Attendance" participation-type non-participant "You are not listed as an attendee" capitalize symbol-name "Method" method gnus-icalendar-event-reply-p rsvp append "Status" "Not replied yet" mapconcat "\n" "\n\n" description] 10 "Format an overview of EVENT details."]([object gnus-icalendar-event-request "gnus-icalendar-event-request" "tvasilopo@otenet.gr" "Farewell_IP_Planning#2" "\316\234\316\277\317\205\317\203\316\271\316\272\316\256 \316\222\317\201\316\261\316\264\316\271\316\254  \317\200\317\201\316\271\316\275 \317\204\316\277\316\275 \316\277\317\201\316\271\317\203\317\204\316\271\316\272\317\214 \"\316\261\317\200\316\277\317\207\317\211\317\201\316\271\317\203\316\274\317\214\". \n\316\244\316\277 \316\274\316\261\316\263\316\261\316\266\316\257 \316\265\316\257\316\275\316\261\316\271 \316\255\316\275\316\261 \316\274\316\271\316\272\317\201\317\214 \316\274\316\265\316\266\316\265\316\264\316\277\317\200\317\211\316\273\316\265\316\257\316\277 \317\203\317\204\316\277\317\205 \316\250\317\205\317\201\317\201\316\256, \316\277\316\264\317\214\317\202 \316\244\316\254\316\272\316\267 13.\n\316\214\317\203\316\277\316\271 \316\270\316\255\316\273\316\277\317\205\316\275 \316\264\316\277\316\272\316\271\316\274\316\254\316\266\316\277\317\205\316\275 \317\204\316\271\317\202 \317\206\317\211\316\275\316\267\317\204\316\271\316\272\316\255\317\202 \317\204\316\277\317\205\317\202 \316\271\316\272\316\261\316\275\317\214\317\204\316\267\317\204\316\265\317\202! \n\316\240\316\265\316\257\317\204\316\265 \316\274\316\277\317\205 \316\274\316\255\317\207\317\201\316\271 \316\244\317\201\316\257\317\204\316\267 \317\214\317\203\316\277\316\271 \316\274\317\200\316\277\317\201\316\265\316\257\317\204\316\265/\316\270\316\255\316\273\316\265\317\204\316\265 \316\275\316\261 \316\255\317\201\316\270\316\265\317\204\316\265 \316\275\316\261 \316\272\316\273\316\265\316\257\317\203\317\211 \317\204\317\201\316\261\317\200\316\255\316\266\316\271." "\"\316\244\316\221\316\232\316\227 13\", \316\250\316\245\316\241\316\241\316\227" (22221 61344) (22222 28208) nil "79e1cd45-012e-4305-869d-56367a5183aa" "REQUEST" nil non-participant ("ip_planning@otenet.gr") nil] "Not replied yet")
  apply(#[(event &optional reply-status) "\304\x18\305\x10\306\307	\310\"D\311\307	\312\"\206\x13\0\313D\314\315	!D\316\307	\317\"D\320\307	\321\"\322=\203-\0\323\2025\0\324\325\307	\321\"!!D\326\307	\327\"D\257\x06\x1a\330	!\204X\0\307	\331\"\203X\0\332\n\333\v\206T\0\334DC\"\x12\335\b\n\336#\337\307	\340\"Q*\207" [--cl-format-header-- event headers reply-status nil #[(x) "\301\302\303\b@\304P\305\306#\b\211A@\262\x01#\207" [x format "%-12s%s" propertize ":" face bold] 6] "Summary" slot-value summary "Location" location "" "Time" gnus-icalendar-event:org-timestamp "Organizer" organizer "Attendance" participation-type non-participant "You are not listed as an attendee" capitalize symbol-name "Method" method gnus-icalendar-event-reply-p rsvp append "Status" "Not replied yet" mapconcat "\n" "\n\n" description] 10 "Format an overview of EVENT details."] ([object gnus-icalendar-event-request "gnus-icalendar-event-request" "tvasilopo@otenet.gr" "Farewell_IP_Planning#2" "\316\234\316\277\317\205\317\203\316\271\316\272\316\256 \316\222\317\201\316\261\316\264\316\271\316\254  \317\200\317\201\316\271\316\275 \317\204\316\277\316\275 \316\277\317\201\316\271\317\203\317\204\316\271\316\272\317\214 \"\316\261\317\200\316\277\317\207\317\211\317\201\316\271\317\203\316\274\317\214\". \n\316\244\316\277 \316\274\316\261\316\263\316\261\316\266\316\257 \316\265\316\257\316\275\316\261\316\271 \316\255\316\275\316\261 \316\274\316\271\316\272\317\201\317\214 \316\274\316\265\316\266\316\265\316\264\316\277\317\200\317\211\316\273\316\265\316\257\316\277 \317\203\317\204\316\277\317\205 \316\250\317\205\317\201\317\201\316\256, \316\277\316\264\317\214\317\202 \316\244\316\254\316\272\316\267 13.\n\316\214\317\203\316\277\316\271 \316\270\316\255\316\273\316\277\317\205\316\275 \316\264\316\277\316\272\316\271\316\274\316\254\316\266\316\277\317\205\316\275 \317\204\316\271\317\202 \317\206\317\211\316\275\316\267\317\204\316\271\316\272\316\255\317\202 \317\204\316\277\317\205\317\202 \316\271\316\272\316\261\316\275\317\214\317\204\316\267\317\204\316\265\317\202! \n\316\240\316\265\316\257\317\204\316\265 \316\274\316\277\317\205 \316\274\316\255\317\207\317\201\316\271 \316\244\317\201\316\257\317\204\316\267 \317\214\317\203\316\277\316\271 \316\274\317\200\316\277\317\201\316\265\316\257\317\204\316\265/\316\270\316\255\316\273\316\265\317\204\316\265 \316\275\316\261 \316\255\317\201\316\270\316\265\317\204\316\265 \316\275\316\261 \316\272\316\273\316\265\316\257\317\203\317\211 \317\204\317\201\316\261\317\200\316\255\316\266\316\271." "\"\316\244\316\221\316\232\316\227 13\", \316\250\316\245\316\241\316\241\316\227" (22221 61344) (22222 28208) nil "79e1cd45-012e-4305-869d-56367a5183aa" "REQUEST" nil non-participant ("ip_planning@otenet.gr") nil] "Not replied yet"))
  gnus-icalendar-event->gnus-calendar([object gnus-icalendar-event-request "gnus-icalendar-event-request" "tvasilopo@otenet.gr" "Farewell_IP_Planning#2" "\316\234\316\277\317\205\317\203\316\271\316\272\316\256 \316\222\317\201\316\261\316\264\316\271\316\254  \317\200\317\201\316\271\316\275 \317\204\316\277\316\275 \316\277\317\201\316\271\317\203\317\204\316\271\316\272\317\214 \"\316\261\317\200\316\277\317\207\317\211\317\201\316\271\317\203\316\274\317\214\". \n\316\244\316\277 \316\274\316\261\316\263\316\261\316\266\316\257 \316\265\316\257\316\275\316\261\316\271 \316\255\316\275\316\261 \316\274\316\271\316\272\317\201\317\214 \316\274\316\265\316\266\316\265\316\264\316\277\317\200\317\211\316\273\316\265\316\257\316\277 \317\203\317\204\316\277\317\205 \316\250\317\205\317\201\317\201\316\256, \316\277\316\264\317\214\317\202 \316\244\316\254\316\272\316\267 13.\n\316\214\317\203\316\277\316\271 \316\270\316\255\316\273\316\277\317\205\316\275 \316\264\316\277\316\272\316\271\316\274\316\254\316\266\316\277\317\205\316\275 \317\204\316\271\317\202 \317\206\317\211\316\275\316\267\317\204\316\271\316\272\316\255\317\202 \317\204\316\277\317\205\317\202 \316\271\316\272\316\261\316\275\317\214\317\204\316\267\317\204\316\265\317\202! \n\316\240\316\265\316\257\317\204\316\265 \316\274\316\277\317\205 \316\274\316\255\317\207\317\201\316\271 \316\244\317\201\316\257\317\204\316\267 \317\214\317\203\316\277\316\271 \316\274\317\200\316\277\317\201\316\265\316\257\317\204\316\265/\316\270\316\255\316\273\316\265\317\204\316\265 \316\275\316\261 \316\255\317\201\316\270\316\265\317\204\316\265 \316\275\316\261 \316\272\316\273\316\265\316\257\317\203\317\211 \317\204\317\201\316\261\317\200\316\255\316\266\316\271." "\"\316\244\316\221\316\232\316\227 13\", \316\250\316\245\316\241\316\241\316\227" (22221 61344) (22222 28208) nil "79e1cd45-012e-4305-869d-56367a5183aa" "REQUEST" nil non-participant ("ip_planning@otenet.gr") nil] "Not replied yet")
  gnus-icalendar-mm-inline((#<buffer  *mm*> ("text/calendar" (charset . "UTF-8") (method . "REQUEST")) 8bit nil nil nil nil nil))
  mm-display-inline((#<buffer  *mm*> ("text/calendar" (charset . "UTF-8") (method . "REQUEST")) 8bit nil nil nil nil nil))
  mm-display-part((#<buffer  *mm*> ("text/calendar" (charset . "UTF-8") (method . "REQUEST")) 8bit nil nil nil nil nil) t)
  byte-code("\b\203\x17\0\306\b\211A\x10\242	\"\203\0\0\307\300\310\"\210\202\0\0\n\211^[\205\"\0\311\312\v!!)\203/\0r\nq\210\f)\2020\0\f\203:\0\306\313	\"\204x\0\314\r!?\205T\0\315\r8?\206T\0\315\r8@\316\232\206T\0\317\r!\211\x16*\203x\0\320\r!\203x\0\321\r!\203l\0\322\r!\204r\0\323	!\203x\0\324\x16+\202\231\0\r\x1d\325\r\211\x1d@;\203\210\0\r@\202\214\0\rA@@)\326\"@)\327\232\203\231\0\324\x16,\x0e-GT\310\x1e.\211\x1e/\rB\x0e-B\x16-\x0e+\203\357\0\r\x1d\325\r\211\x1d@;\203\277\0\r@\202\303\0\rA@@)\326\"@)\330\232\203\357\0\331\332n\204\327\0\333\202\355\0o\204\350\0`S\206\341\0`Sf\332=\203\354\0\334\202\355\0\335\"\210\x0e+\203\x02\x01\336	!\203\x02\x01\x0e/\x0e0=\203^[\x01\337\r\x0e/\x0e+\206\x12\x01\x0e*\205\x12\x01\x0e,C#\210\340 \210\324\x161`\x16.\x0e+\203\231\x01\x0e1\203.\x01\341y\210`\x16.\x0e2\212\310\342\343\217\210\x0e3)\x1e4\x1e5\344\345!\203^\x01\x0e6\211^[\205O\x01\311\312\v!!)\203^\x01r\x0e6q\210\x0e7)\202`\x01\x0e7\211\x1e8\204j\x01\324\202\204\x01\x0e9;\203y\x01\306\x0e9\x0e8\"\202\204\x01\x0e9:\205\204\x01\x0e8\x0e9\235?\205\212\x01\x0e:)\x1e:\346\r\324\"\210+db\210\202\270\x01\x0e,\203\270\x01\x0e*\203\270\x01\x0e1\203\256\x01\341y\210`\x16.\340 \210\347\r!\210db\210\212\214\x0e.`}\210\r\x0e;=\203\340\x01\350\310\335\211\r\211\x1d@;\203\327\x01\r@\202\333\x01\rA@@)$\2021\x02\310\x1e<\x0e;\310\x1e=\211\x1e>\203\x12\x02\x0e>@\211\x16=;\204	\x02\x0e=A@@\351\232\204	\x02\x0e=\x0e<B\x16<\x0e>A\211\x16>\204\356\x01*\350\310\r\x0e<>G\x0e<G\r\211\x1d@;\203*\x02\r@\202.\x02\rA@@)$),\207" [ignored type gnus-summary-buffer buffer gnus-inhibit-images handle string-match throw nil buffer-live-p get-buffer "\\`image/" mm-inline-override-p 4 "inline" mm-attachment-override-p mm-automatic-display-p mm-inlinable-p mm-inlined-p mm-automatic-external-display-p t split-string "/" "text" "message" insert-char 10 2 0 1 gnus-unbuttonized-mime-type-p gnus-insert-mime-button gnus-article-insert-newline -1 (set-buffer gnus-summary-buffer) ((error)) derived-mode-p gnus-article-mode mm-display-part mm-display-inline gnus-treat-article "application/pgp-signature" not-attachment display text gnus-article-mime-handle-alist beg id gnus-mime-buttonized-part-id move ...] 6)
  gnus-mime-display-single((#<buffer  *mm*> ("text/calendar" (charset . "UTF-8") (method . "REQUEST")) 8bit nil nil nil nil nil))
  gnus-mime-display-part((#<buffer  *mm*> ("text/calendar" (charset . "UTF-8") (method . "REQUEST")) 8bit nil nil nil nil nil))
  gnus-display-mime()
  gnus-article-prepare-display()
  gnus-article-prepare(136273 nil)
  gnus-summary-display-article(136273 nil)
  gnus-summary-select-article(nil nil pseudo)
  gnus-summary-scroll-up(1)
  call-interactively(gnus-summary-scroll-up nil nil)
  command-execute(gnus-summary-scroll-up)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gnus-icalendar errors in emacs 24.5
       [not found] <mailman.5404.1456174176.843.help-gnu-emacs@gnu.org>
@ 2016-02-23  1:41 ` Lars Magne Ingebrigtsen
  2016-02-23  9:13   ` Kostas Zorbadelos
  2016-02-23 10:13   ` Jan Tatarik
  0 siblings, 2 replies; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2016-02-23  1:41 UTC (permalink / raw
  To: Kostas Zorbadelos; +Cc: help-gnu-emacs, Jan Tatarik

Kostas Zorbadelos <kzorba@otenet.gr> writes:

> Org file exists and has a 'Calendar' headline.
> On export of a calendar mail (attached the calendar MIME part) I get the
> attached backtrace. I get the same backtrace even when I send a gmail
> calendar invitation. Any suggestions?

[...]

> Debugger entered--Lisp error: (error "Invalid date: 2016-02-25 Πεμ")
>   signal(error ("Invalid date: 2016-02-25 Πεμ"))
>   error("Invalid date: %s" "2016-02-25 Πεμ")
>  date-to-time("2016-02-25 Πεμ")

This is definitely a bug, and it comes from here:

(cl-defmethod gnus-icalendar-event:org-timestamp ((event gnus-icalendar-event))
  "Build `org-mode' timestamp from EVENT start/end dates and recurrence info."
  (let* ((start (gnus-icalendar-event:start-time event))
         (end (gnus-icalendar-event:end-time event))
         (start-date (format-time-string "%Y-%m-%d %a" start))

%a is the locale's day name, and that's not something `date-to-time' can
parse.  But I'm not familiar with gnus-icalendar, so I'm not sure what
the right fix is here.

Jan, is the week day supposed to be in these date strings at all?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gnus-icalendar errors in emacs 24.5
  2016-02-23  1:41 ` gnus-icalendar errors in emacs 24.5 Lars Magne Ingebrigtsen
@ 2016-02-23  9:13   ` Kostas Zorbadelos
  2016-02-23 10:13   ` Jan Tatarik
  1 sibling, 0 replies; 7+ messages in thread
From: Kostas Zorbadelos @ 2016-02-23  9:13 UTC (permalink / raw
  To: Lars Magne Ingebrigtsen; +Cc: help-gnu-emacs, Jan Tatarik


Lars,

thank you so much. The problem is indeed my Greek locale that causes
failure in date-to-time().
I made the following patch

--- gnus-icalendar.el.orig	2016-02-23 09:04:49.755027543 +0200
+++ gnus-icalendar.el	2016-02-23 10:57:03.759362183 +0200
@@ -389,10 +389,10 @@
   "Build `org-mode' timestamp from EVENT start/end dates and recurrence info."
   (let* ((start (gnus-icalendar-event:start-time event))
          (end (gnus-icalendar-event:end-time event))
-         (start-date (format-time-string "%Y-%m-%d %a" start))
+         (start-date (format-time-string "%Y-%m-%dT%T%z" start))
          (start-time (format-time-string "%H:%M" start))
          (start-at-midnight (string= start-time "00:00"))
-         (end-date (format-time-string "%Y-%m-%d %a" end))
+         (end-date (format-time-string "%Y-%m-%dT%T%z" end))
          (end-time (format-time-string "%H:%M" end))
          (end-at-midnight (string= end-time "00:00"))
          (start-end-date-diff (/ (float-time (time-subtract

that seems to work. Jan, as the author has the final saying in this,
hopefully it doesn't break anything else, or there is just a better
solution. Hopefully it will be fixed in later versions of Emacs. 
Again, thanks, it is a pleasure to finally get rid of Thunderbird and
have a plain text calendaring that works.

Regards,
Kostas

Lars Magne Ingebrigtsen <lmi@gnus.org> writes:

> Kostas Zorbadelos <kzorba@otenet.gr> writes:
>
>> Org file exists and has a 'Calendar' headline.
>> On export of a calendar mail (attached the calendar MIME part) I get the
>> attached backtrace. I get the same backtrace even when I send a gmail
>> calendar invitation. Any suggestions?
>
> [...]
>
>> Debugger entered--Lisp error: (error "Invalid date: 2016-02-25 Πεμ")
>>   signal(error ("Invalid date: 2016-02-25 Πεμ"))
>>   error("Invalid date: %s" "2016-02-25 Πεμ")
>>  date-to-time("2016-02-25 Πεμ")
>
> This is definitely a bug, and it comes from here:
>
> (cl-defmethod gnus-icalendar-event:org-timestamp ((event gnus-icalendar-event))
>   "Build `org-mode' timestamp from EVENT start/end dates and recurrence info."
>   (let* ((start (gnus-icalendar-event:start-time event))
>          (end (gnus-icalendar-event:end-time event))
>          (start-date (format-time-string "%Y-%m-%d %a" start))
>
> %a is the locale's day name, and that's not something `date-to-time' can
> parse.  But I'm not familiar with gnus-icalendar, so I'm not sure what
> the right fix is here.
>
> Jan, is the week day supposed to be in these date strings at all?

-- 
Kostas Zorbadelos	http://gr.linkedin.com/in/kzorba	



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gnus-icalendar errors in emacs 24.5
  2016-02-23  1:41 ` gnus-icalendar errors in emacs 24.5 Lars Magne Ingebrigtsen
  2016-02-23  9:13   ` Kostas Zorbadelos
@ 2016-02-23 10:13   ` Jan Tatarik
  2016-02-23 10:16     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 7+ messages in thread
From: Jan Tatarik @ 2016-02-23 10:13 UTC (permalink / raw
  To: Lars Magne Ingebrigtsen; +Cc: help-gnu-emacs, Kostas Zorbadelos

[-- Attachment #1: Type: text/plain, Size: 802 bytes --]

On Tue, Feb 23 2016, Lars Magne Ingebrigtsen wrote:

[...]

> This is definitely a bug, and it comes from here:

> (cl-defmethod gnus-icalendar-event:org-timestamp ((event gnus-icalendar-event))
>   "Build `org-mode' timestamp from EVENT start/end dates and recurrence info."
>   (let* ((start (gnus-icalendar-event:start-time event))
>          (end (gnus-icalendar-event:end-time event))
>          (start-date (format-time-string "%Y-%m-%d %a" start))

> %a is the locale's day name, and that's not something `date-to-time' can
> parse.  But I'm not familiar with gnus-icalendar, so I'm not sure what
> the right fix is here.

> Jan, is the week day supposed to be in these date strings at all?

How about this? It's a patch against the emacs-25 branch, I was not able
to connect to the gnus git. 


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff, Size: 851 bytes --]

diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
index 4faef06..82a649f 100644
--- a/lisp/gnus/gnus-icalendar.el
+++ b/lisp/gnus/gnus-icalendar.el
@@ -401,8 +401,8 @@ gnus-icalendar-event:org-timestamp
          (end-time (format-time-string "%H:%M" end))
          (end-at-midnight (string= end-time "00:00"))
          (start-end-date-diff (/ (float-time (time-subtract
-                                        (date-to-time end-date)
-                                        (date-to-time start-date)))
+                                        (org-time-string-to-time end-date)
+                                        (org-time-string-to-time start-date)))
                                  86400))
          (org-repeat (gnus-icalendar-event:org-repeat event))
          (repeat (if org-repeat (concat " " org-repeat) ""))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: gnus-icalendar errors in emacs 24.5
  2016-02-23 10:13   ` Jan Tatarik
@ 2016-02-23 10:16     ` Lars Ingebrigtsen
  2016-02-23 10:35       ` gnus-icalendar errors in emacs 24.5 [FIXED] Kostas Zorbadelos
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-23 10:16 UTC (permalink / raw
  To: Jan Tatarik; +Cc: help-gnu-emacs, Kostas Zorbadelos

Jan Tatarik <jan.tatarik@gmail.com> writes:

> How about this? It's a patch against the emacs-25 branch, I was not able
> to connect to the gnus git. 

The Gnus git repository is now read-only (and only with anonymous
access).

> diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
> index 4faef06..82a649f 100644
> --- a/lisp/gnus/gnus-icalendar.el
> +++ b/lisp/gnus/gnus-icalendar.el
> @@ -401,8 +401,8 @@ gnus-icalendar-event:org-timestamp
>           (end-time (format-time-string "%H:%M" end))
>           (end-at-midnight (string= end-time "00:00"))
>           (start-end-date-diff (/ (float-time (time-subtract
> -                                        (date-to-time end-date)
> -                                        (date-to-time start-date)))
> +                                        (org-time-string-to-time end-date)
> +                                        (org-time-string-to-time start-date)))

Yes, this seems to fix the problem.  I'll apply to emacs-25 and push.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gnus-icalendar errors in emacs 24.5 [FIXED]
  2016-02-23 10:16     ` Lars Ingebrigtsen
@ 2016-02-23 10:35       ` Kostas Zorbadelos
  2016-02-23 14:25         ` gnus-icalendar errors in emacs 24.5 [timezone issue] Kostas Zorbadelos
  0 siblings, 1 reply; 7+ messages in thread
From: Kostas Zorbadelos @ 2016-02-23 10:35 UTC (permalink / raw
  To: Lars Ingebrigtsen; +Cc: help-gnu-emacs, Jan Tatarik

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Jan Tatarik <jan.tatarik@gmail.com> writes:
>
>> How about this? It's a patch against the emacs-25 branch, I was not able
>> to connect to the gnus git. 
>
> The Gnus git repository is now read-only (and only with anonymous
> access).
>
>> diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
>> index 4faef06..82a649f 100644
>> --- a/lisp/gnus/gnus-icalendar.el
>> +++ b/lisp/gnus/gnus-icalendar.el
>> @@ -401,8 +401,8 @@ gnus-icalendar-event:org-timestamp
>>           (end-time (format-time-string "%H:%M" end))
>>           (end-at-midnight (string= end-time "00:00"))
>>           (start-end-date-diff (/ (float-time (time-subtract
>> -                                        (date-to-time end-date)
>> -                                        (date-to-time start-date)))
>> +                                        (org-time-string-to-time end-date)
>> +                                        (org-time-string-to-time start-date)))
>
> Yes, this seems to fix the problem.  I'll apply to emacs-25 and push.

This seems to work as well in 24.5. My proposal broke the dates in the
agenda buffer.

Now I have a different problem, showing Greek (or other international
text I guess) in calendar invitations. I will start a new thread for
this. 

Thanks,
Kostas

-- 
Kostas Zorbadelos	http://gr.linkedin.com/in/kzorba	



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gnus-icalendar errors in emacs 24.5 [timezone issue]
  2016-02-23 10:35       ` gnus-icalendar errors in emacs 24.5 [FIXED] Kostas Zorbadelos
@ 2016-02-23 14:25         ` Kostas Zorbadelos
  0 siblings, 0 replies; 7+ messages in thread
From: Kostas Zorbadelos @ 2016-02-23 14:25 UTC (permalink / raw
  To: Jan Tatarik; +Cc: Lars Ingebrigtsen, help-gnu-emacs

Kostas Zorbadelos <kzorba@otenet.gr> writes:

Hello,

time handling is never trivial, it seems.
When the calendar sender is in a different timezone, the extracted event
does not seem to be converted to my timezone.

I need more reading and understanding of the code to find out where the
issue is (e.g what exactly are start, end below in
(defmethod gnus-icalendar-event:org-timestamp ((event gnus-icalendar-event))
      ...
      (start (gnus-icalendar-event:start-time event))
      (end (gnus-icalendar-event:end-time event))
      ...
).

In case you have any ideas, or I am missing something, please share. 

Regards,
Kostas

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Jan Tatarik <jan.tatarik@gmail.com> writes:
>>
>>> How about this? It's a patch against the emacs-25 branch, I was not able
>>> to connect to the gnus git. 
>>
>> The Gnus git repository is now read-only (and only with anonymous
>> access).
>>
>>> diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
>>> index 4faef06..82a649f 100644
>>> --- a/lisp/gnus/gnus-icalendar.el
>>> +++ b/lisp/gnus/gnus-icalendar.el
>>> @@ -401,8 +401,8 @@ gnus-icalendar-event:org-timestamp
>>>           (end-time (format-time-string "%H:%M" end))
>>>           (end-at-midnight (string= end-time "00:00"))
>>>           (start-end-date-diff (/ (float-time (time-subtract
>>> -                                        (date-to-time end-date)
>>> -                                        (date-to-time start-date)))
>>> +                                        (org-time-string-to-time end-date)
>>> +                                        (org-time-string-to-time start-date)))
>>
>> Yes, this seems to fix the problem.  I'll apply to emacs-25 and push.
>

--
Kostas Zorbadelos	http://gr.linkedin.com/in/kzorba	



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-23 14:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5404.1456174176.843.help-gnu-emacs@gnu.org>
2016-02-23  1:41 ` gnus-icalendar errors in emacs 24.5 Lars Magne Ingebrigtsen
2016-02-23  9:13   ` Kostas Zorbadelos
2016-02-23 10:13   ` Jan Tatarik
2016-02-23 10:16     ` Lars Ingebrigtsen
2016-02-23 10:35       ` gnus-icalendar errors in emacs 24.5 [FIXED] Kostas Zorbadelos
2016-02-23 14:25         ` gnus-icalendar errors in emacs 24.5 [timezone issue] Kostas Zorbadelos
2016-02-22 18:48 gnus-icalendar errors in emacs 24.5 Kostas Zorbadelos

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.