aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Jasper2014-11-15 13:49:28 +0100
committerUlf Jasper2014-11-16 17:38:09 +0100
commit0df06a3ac574ddd17cdf82c0f1f236711c768305 (patch)
treef1d9126b94db1d63662a4e6a53ebe9047d4ff991
parent7261b4d9b2f35c3e520b488a8ba3cfde30f84a24 (diff)
downloademacs-0df06a3ac574ddd17cdf82c0f1f236711c768305.tar.gz
emacs-0df06a3ac574ddd17cdf82c0f1f236711c768305.zip
intermediate commit
-rw-r--r--lisp/calendar/icalendar.el31
1 files changed, 30 insertions, 1 deletions
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index 9dba6ff2dcf..cdda8f0fba2 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -267,6 +267,34 @@ other sexp entries are enumerated in any case."
267 :type 'boolean 267 :type 'boolean
268 :group 'icalendar) 268 :group 'icalendar)
269 269
270(defcustom icalendar-export-alarms
271 nil
272 "Determine if and how alarms are included in exported diary events.
273FIXME
274... appt-display-format
275... appt-audible
276.... appt-message-warning-time
277... appt-warning-time-regexp
278"
279 :version "25.1"
280 :type '(choice (const :tag "Do not include alarms in export" nil)
281 (const :tag "Apply emacs defaults FIXME" 'default)
282 (list :tag "Create alarms in exported diary entries"
283 (integer :tag "Advance time (minutes)"
284 ;; FIXME
285 :value appt-message-warning-time)
286 (choice :tag "Alarm type"
287 (list :tag "Audio"
288 (string :tag "Audio file"))
289 (cons :tag "Display"
290 (string :tag "Description"))
291 (list :tag "Email"
292 (string :tag "Description")
293 (string :tag "Summary")
294 (string :tag "Attendees")))))
295 :group 'icalendar)
296
297
270(defvar icalendar-debug nil 298(defvar icalendar-debug nil
271 "Enable icalendar debug messages.") 299 "Enable icalendar debug messages.")
272 300
@@ -281,6 +309,7 @@ other sexp entries are enumerated in any case."
281;; ====================================================================== 309;; ======================================================================
282(require 'calendar) 310(require 'calendar)
283(require 'diary-lib) 311(require 'diary-lib)
312(require 'appt)
284 313
285;; ====================================================================== 314;; ======================================================================
286;; misc 315;; misc
@@ -1053,7 +1082,7 @@ FExport diary data into iCalendar file: ")
1053 (condition-case error-val 1082 (condition-case error-val
1054 (progn 1083 (progn
1055 (setq cns-cons-or-list 1084 (setq cns-cons-or-list
1056 (icalendar--convert-to-ical nonmarker entry-main)) 1085 (icalendar--convert-to-ical nonmarker entry-main))
1057 (setq other-elements (icalendar--parse-summary-and-rest 1086 (setq other-elements (icalendar--parse-summary-and-rest
1058 entry-full)) 1087 entry-full))
1059 (mapc (lambda (contents-n-summary) 1088 (mapc (lambda (contents-n-summary)