From: Jon Miller <jonebird@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: column-mode can not do an estimate effort summation on day/week modifiers
Date: Wed, 05 Mar 2014 17:10:12 -0800 [thread overview]
Message-ID: <vl8fd2i0cetn.fsf@gmail.com> (raw)
Hello,
I'm creating a new org file today and I'm using work estimates that use
day(d) and week(w) modifiers. Specifically, I have the following defined:
#+PROPERTY: Effort_ALL 0 1:00 4:00 1d 2d 1w 2w
#+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM
The problem I'm having is with column-mode and the estimate effort sum. It
appears that the normal effort summation wants purely HH:MM formatted work
estimates. I spent some time trying to understand that part of the code but
some of those column functions are pretty big (read: I'm a semi-literate
elisper). I did come up with the following to define my own summary-type ":d"
#+begin_src elisp
(add-to-list 'org-columns-compile-map
'(":d" add_duration
(lambda (&rest x) (apply '+ (mapcar 'org-duration-string-to-minutes (mapcar 'prin1-to-string x))))) t)
#+end_src
First version wasn't using the prin1-to-string and I noticed
"org-duration-string-to-minutes" was being passing only the integer part of
a "1d" work effort. Adding the prin1-to-string processing merely made it
not error anymore but still isn't doing what I'd like.
Is there a way to get the entire work effort passed to my function? Or a
better suggestion?
Thanks,
--
Jon Miller
next reply other threads:[~2014-03-06 1:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 1:10 Jon Miller [this message]
2014-03-07 15:11 ` column-mode can not do an estimate effort summation on day/week modifiers Christian Egli
2014-03-07 16:20 ` column-mode can not do an estimate effort summation onday/week modifierss Jon Miller
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vl8fd2i0cetn.fsf@gmail.com \
--to=jonebird@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 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.