emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anders Johansson <mejlaandersj@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Icalendar-export, priorities missing, possible bug
Date: Sun, 10 Feb 2013 22:56:37 +0100	[thread overview]
Message-ID: <51181795.6010408@gmail.com> (raw)
In-Reply-To: <8738x4ezj0.fsf@gmail.com>

Hi,

2013-02-10 20:31, Nicolas Goaziou skrev:
> Hello,
>
> Anders Johansson <mejlaandersj@gmail.com> 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

      reply	other threads:[~2013-02-10 21:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-10 18:01 Icalendar-export, priorities missing, possible bug Anders Johansson
2013-02-10 19:31 ` Nicolas Goaziou
2013-02-10 21:56   ` Anders Johansson [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=51181795.6010408@gmail.com \
    --to=mejlaandersj@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /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).