Function: icalendar-print-calendar-node
icalendar-print-calendar-node is a byte-compiled function defined in
icalendar-parser.el.gz.
Signature
(icalendar-print-calendar-node VCALENDAR)
Documentation
Serialize an icalendar-vcalendar VCALENDAR to a string.
If VCALENDAR is not a valid icalendar-vcalendar, an
icalendar-validation-error will be signaled. Any errors that arise
during printing will be logged in the buffer returned by
icalendar-error-buffer.
Other relevant functions are documented in the icalendar group.
Shortdoc
;; icalendar
(icalendar-print-calendar-node vcalendar)
=> "BEGIN:VCALENDAR..."
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
;; TODO: should we do anything to *create* VTIMEZONE nodes in VCALENDAR
;; when they're required but don't exist?
(defun ical:print-calendar-node (vcalendar)
"Serialize an `icalendar-vcalendar' VCALENDAR to a string.
If VCALENDAR is not a valid `icalendar-vcalendar', an
`icalendar-validation-error' will be signaled. Any errors that arise
during printing will be logged in the buffer returned by
`icalendar-error-buffer'."
(when (ical:ast-node-valid-p vcalendar t)
(condition-case err
(ical:print-component-node vcalendar)
(ical:print-error
(ical:handle-print-error err)))))