1402 |
|
|
1403 |
To activate the package, use @code{(require 'icalendar)}. |
To activate the package, use @code{(require 'icalendar)}. |
1404 |
|
|
1405 |
@findex icalendar-extract-ical-from-buffer |
@findex icalendar-import-buffer |
1406 |
The command @code{icalendar-extract-ical-from-buffer} extracts |
The command @code{icalendar-import-buffer} extracts |
1407 |
iCalendar data from the current buffer and adds it to your (default) |
iCalendar data from the current buffer and adds it to your (default) |
1408 |
diary file. This function is also suitable for automatic extraction of |
diary file. This function is also suitable for automatic extraction of |
1409 |
iCalendar data; for example with the Rmail mail client one could use: |
iCalendar data; for example with the Rmail mail client one could use: |
1410 |
|
|
1411 |
@example |
@example |
1412 |
(add-hook 'rmail-show-message-hook 'icalendar-extract-ical-from-buffer) |
(add-hook 'rmail-show-message-hook 'icalendar-import-buffer) |
1413 |
@end example |
@end example |
1414 |
|
|
1415 |
@findex icalendar-import-file |
@findex icalendar-import-file |
1416 |
The command @code{icalendar-import-file} imports an iCalendar file. |
The command @code{icalendar-import-file} imports an iCalendar file |
1417 |
@strong{Caution:} the contents of the target diary file are |
and adds the results to an Emacs diary file. For example: |
|
@emph{deleted} by default! It is highly recommended to use a dedicated |
|
|
diary file for importing. For example: |
|
1418 |
|
|
1419 |
@example |
@example |
1420 |
(icalendar-import-file "/here/is/calendar.ics" "/there/goes/ical-diary") |
(icalendar-import-file "/here/is/calendar.ics" "/there/goes/ical-diary") |
1422 |
|
|
1423 |
@noindent |
@noindent |
1424 |
You can use an @code{#include} directive to add the import file contents |
You can use an @code{#include} directive to add the import file contents |
1425 |
to the diary. @xref{Fancy Diary Display,,, elisp, The Emacs Lisp |
to the main diary file, if these are distinct. @xref{Fancy Diary |
1426 |
Reference Manual}. |
Display,,, elisp, The Emacs Lisp Reference Manual}. |
1427 |
|
|
1428 |
@findex icalendar-convert-diary-to-ical |
@findex icalendar-export-file, icalendar-export-region |
1429 |
The command @code{icalendar-convert-diary-to-ical} exports an Emacs |
Use @code{icalendar-export-file} to interactively export an entire |
1430 |
diary file to iCalendar format. @strong{Caution:} the contents of the |
Emacs diary file to iCalendar format. To export only a part of a diary |
1431 |
target file are @emph{deleted} by default! |
file, mark the relevant area, and call @code{icalendar-export-region}. |
1432 |
|
In both cases the result is appended to the target file. |
1433 |
|
|
1434 |
|
|
1435 |
@node Daylight Savings |
@node Daylight Savings |