Fix priority bug in icalendar export.

This commit is contained in:
Carsten Dominik 2008-10-28 15:39:45 +01:00
parent 99572d93b2
commit cff8571c31
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2008-10-28 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-print-icalendar-entries): Make the exported
priorities compatible with RFC 2445.
* org-clock.el (org-clock-save): Insert time stamp without
dependence on time-stamp.el.

View File

@ -4384,8 +4384,8 @@ 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))
(- org-lowest-priority org-highest-priority))))))
(setq pri (floor (- 9 (* 8. (/ (float (- org-lowest-priority pri))
(- org-lowest-priority org-highest-priority))))))
(princ (format "BEGIN:VTODO
UID: %s