Function: icalendar-export-file
icalendar-export-file is an autoloaded, interactive and byte-compiled
function defined in icalendar.el.gz.
Signature
(icalendar-export-file DIARY-FILENAME ICAL-FILENAME)
Documentation
Export diary file to iCalendar format.
All diary entries in the file DIARY-FILENAME are converted to iCalendar format. The result is appended to the file ICAL-FILENAME.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
;; ======================================================================
;; Export -- convert emacs-diary to iCalendar
;; ======================================================================
;;;###autoload
(defun icalendar-export-file (diary-filename ical-filename)
"Export diary file to iCalendar format.
All diary entries in the file DIARY-FILENAME are converted to iCalendar
format. The result is appended to the file ICAL-FILENAME."
(interactive "FExport diary data from file: \n\
Finto iCalendar file: ")
(save-current-buffer
(set-buffer (find-file diary-filename))
(icalendar-export-region (point-min) (point-max) ical-filename)))