all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* patch to org-exp.el fixing priority value of icalendar export
@ 2008-10-28 14:02 Tokuya Kameshima
  2008-10-28 14:40 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Tokuya Kameshima @ 2008-10-28 14:02 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: kames

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-28 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 14:02 patch to org-exp.el fixing priority value of icalendar export Tokuya Kameshima
2008-10-28 14:40 ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.