bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

icalendar: icalendar-import-buffer when finds RDATE but no RRULE


From: richard_sharman
Subject: icalendar: icalendar-import-buffer when finds RDATE but no RRULE
Date: Fri, 15 Feb 2008 13:34:28 -0500

In function icalendar--format-ical-event,  in the inner `cond' function,
if the initial rrule condition is skipped but the second case - the rdate
one - is taken, then variable event-ok is not set to t.   So the function
then treats the event as invalid.

sharmanpc 10% diff -c icalendar.el{.orig,}
*** icalendar.el.orig   Fri Feb 15 13:19:58 2008
--- icalendar.el        Fri Feb 15 13:20:04 2008
***************
*** 1641,1647 ****
                          (setq diary-string
                                (concat diary-string
                                        (format "......"))))
!                       (icalendar--split-value rdate)))
               ;; non-recurring event
               ;; all-day event
               ((not (string= start-d end-d))
--- 1641,1648 ----
                          (setq diary-string
                                (concat diary-string
                                        (format "......"))))
!                       (icalendar--split-value rdate))
!             (setq event-ok t))
               ;; non-recurring event
               ;; all-day event
               ((not (string= start-d end-d))
sharmanpc 11% 


Here is the patch as a file in case this helps, and a file
to demonstrate the problem.  

Attachment: Patch-3300
Description: Binary data

Attachment: test.ics
Description: vcalendar file to demonstrate the problem

Richard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]