emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: ox-taskjuggler :effort: property incorrectly converted when in minutes
Date: Mon, 03 Nov 2014 00:25:36 +0100	[thread overview]
Message-ID: <87sii1famn.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CA+M2ft93PHYYHHF+sby2cb5+g1gv=jBmbNP1NpkwAnRvx7LqCw@mail.gmail.com> (John Hendy's message of "Sun, 2 Nov 2014 17:07:17 -0600")

John Hendy <jw.hendy@gmail.com> writes:

> Thanks for the explanation. I pretty much only use duration, which has
> never had an issue. As a fluke I used effort and noticed the big
> difference. Thanks for illuminating the situation!

Actually, I was slightly wrong. According to
`org-duration-string-to-minutes' and `org-effort-durations' docstrings,
Org accepts modifiers for numbers. IOW

  :Effort: 3d

is a valid value in Org.

The real problem is that "min" is not recognized as a valid modifier,
since "30min" is basically the same as "30" or "0:30".

I changed `org-effort-durations' default value to include "min" as
a modifier, which will make your original example work.


Regards,

  reply	other threads:[~2014-11-02 23:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02 22:26 Bug: ox-taskjuggler :effort: property incorrectly converted when in minutes John Hendy
2014-11-02 22:47 ` Nicolas Goaziou
2014-11-02 22:54   ` John Hendy
2014-11-02 23:01     ` Nicolas Goaziou
2014-11-02 23:07       ` John Hendy
2014-11-02 23:25         ` Nicolas Goaziou [this message]
2014-11-03 21:53           ` John Hendy

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=87sii1famn.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@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).