From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Johansson Subject: Re: Icalendar-export, priorities missing, possible bug Date: Sun, 10 Feb 2013 22:56:37 +0100 Message-ID: <51181795.6010408@gmail.com> References: <5117E06D.1030902@gmail.com> <8738x4ezj0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4et9-0003u8-JR for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 16:56:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4et6-0005w1-Jv for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 16:56:43 -0500 Received: from lyra.its.uu.se ([130.238.7.73]:58776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4et6-0005vq-DD for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 16:56:40 -0500 In-Reply-To: <8738x4ezj0.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi, 2013-02-10 20:31, Nicolas Goaziou skrev: > Hello, > > Anders Johansson writes: > >> When I'm exporting to icalendar, the priorities of todo items (or >> perhaps any items) don't get carried through correctly. It always >> falls back to priority 5 (the default). >> >> After doing some edebugging I found that >> >> (string-match org-priority-regexp hd) [org-icalendar.el:539] >> >> never seems to match. >> >> This might be because 'hd' is group 4 "True headline" from the >> matching done with 'org-complex-heading-regexp' whereas group >> 3 according to this variable's docstring should hold the "Priority >> cookie". >> >> I guess someone who has greater knowledge of the code could see if >> this is really the case and fix it. >> >> I can provide more debugging output and examples if needed and if >> others can't reproduce this. > iCalendar export back-end has been rewritten. It is accessible from the > git distribution of Org. I didn't check if that bug is still present > though. > > > Regards, > Oh, that looks completely different. Taking a look at the newest git source, priority is now found like this (ox-icalendar.el) 705 (let ((pri (or (org-element-property :priority entry) 706 org-default-priority))) and assuming this is consistent with the new framework it should of course work, but I haven't tested yet. Funny that I found this problem now, using the less than a week old ELPA-package (20130204), when the new export framework was "moved into core" (commit 8dd2bf) just three days ago. Greetings, Anders Johansson