emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Tokuya Kameshima <kames@fa2.so-net.ne.jp>
Cc: emacs-orgmode@gnu.org
Subject: Re: patch to org-exp.el fixing priority value of icalendar export
Date: Tue, 28 Oct 2008 15:40:26 +0100	[thread overview]
Message-ID: <E7266988-645A-4046-95E1-2A50CE9466DF@uva.nl> (raw)
In-Reply-To: <20081028.230213.222899582.kames@fa2.so-net.ne.jp>

Applied, thanks.

- Carsten

On Oct 28, 2008, at 3:02 PM, Tokuya Kameshima wrote:

> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2008-10-28 14:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E7266988-645A-4046-95E1-2A50CE9466DF@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=kames@fa2.so-net.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).