Function: icalendar--convert-to-ical

icalendar--convert-to-ical is a byte-compiled function defined in icalendar.el.gz.

Signature

(icalendar--convert-to-ical NONMARKER ENTRY-MAIN)

Documentation

Convert a diary entry to iCalendar format.

NONMARKER is a regular expression matching the start of non-marking entries. ENTRY-MAIN is the first line of the diary entry.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
(defun icalendar--convert-to-ical (nonmarker entry-main)
  "Convert a diary entry to iCalendar format.
NONMARKER is a regular expression matching the start of non-marking
entries.  ENTRY-MAIN is the first line of the diary entry."
  (or
   (unless icalendar-export-sexp-enumerate-all
     (or
      ;; anniversaries -- %%(diary-anniversary ...)
      (icalendar--convert-anniversary-to-ical nonmarker entry-main)
      ;; cyclic events -- %%(diary-cyclic ...)
      (icalendar--convert-cyclic-to-ical nonmarker entry-main)
      ;; diary-date -- %%(diary-date ...)
      (icalendar--convert-date-to-ical nonmarker entry-main)
      ;; float events -- %%(diary-float ...)
      (icalendar--convert-float-to-ical nonmarker entry-main)
      ;; block events -- %%(diary-block ...)
      (icalendar--convert-block-to-ical nonmarker entry-main)))
   ;; other sexp diary entries
   (icalendar--convert-sexp-to-ical nonmarker entry-main)
   ;; weekly by day -- Monday 8:30 Team meeting
   (icalendar--convert-weekly-to-ical nonmarker entry-main)
   ;; yearly by day -- 1 May Tag der Arbeit
   (icalendar--convert-yearly-to-ical nonmarker entry-main)
   ;; "ordinary" events, start and end time given
   ;; 1 Feb 2003 blah
   (icalendar--convert-ordinary-to-ical nonmarker entry-main)
   ;; everything else
   ;; Oops! what's that?
   (error "Could not parse entry")))