[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] patch to org-exp.el fixing priority value of icalendar export
From: |
Tokuya Kameshima |
Subject: |
[Orgmode] patch to org-exp.el fixing priority value of icalendar export |
Date: |
Tue, 28 Oct 2008 23:02:13 +0900 () |
Hi,
Per RFC 2445, the priority value of 1 is the highest priority and 9 is
the lowest priority. But `org-print-icalendar-entries' writes the
opposite ones.
Thanks,
--Tokuya
PS. I found this bug when I started using Rainlendar to view ICS
exported events and tasks.
----------------------------------------
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 744952b..a4bf3ae 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -3826,7 +3826,7 @@ END:VEVENT\n"
hd (concat (substring hd 0 (match-beginning 1))
(substring hd (match-end 1))))
(setq pri org-default-priority))
- (setq pri (floor (1+ (* 8. (/ (float (- org-lowest-priority pri))
+ (setq pri (floor (- 9 (* 8. (/ (float (- org-lowest-priority pri))
(- org-lowest-priority
org-highest-priority))))))
(princ (format "BEGIN:VTODO
- [Orgmode] patch to org-exp.el fixing priority value of icalendar export,
Tokuya Kameshima <=