From 7f6a127e46f3145ae2a84d2f39664520120a2271 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 15 Aug 2012 03:42:58 +0200 Subject: [PATCH] org-icalendar.el: Fix bug about handling `alarm-time' * org-icalendar.el (org-print-icalendar-entries): Fix bug about handling `alarm-time'. Thanks to Charles Philip Chan for reporting this. --- lisp/org-icalendar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el index eb1892d70..3cac791e7 100644 --- a/lisp/org-icalendar.el +++ b/lisp/org-icalendar.el @@ -360,7 +360,7 @@ When COMBINE is non nil, add the category to each line." (or (org-id-get) (org-id-new))) categories (org-export-get-categories) alarm-time (org-entry-get nil "APPT_WARNTIME") - alarm-time (when alarm-time (string-to-number alarm-time)) + alarm-time (if alarm-time (string-to-number alarm-time) 0) alarm "" deadlinep nil scheduledp nil) (if (looking-at re2) -- 2.11.4.GIT