From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Miller Subject: column-mode can not do an estimate effort summation on day/week modifiers Date: Wed, 05 Mar 2014 17:10:12 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLMpM-0003FZ-SE for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 20:10:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLMpE-0005zu-Fd for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 20:10:24 -0500 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:62122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLMpE-0005zm-8P for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 20:10:16 -0500 Received: by mail-pd0-f181.google.com with SMTP id p10so1785937pdj.12 for ; Wed, 05 Mar 2014 17:10:15 -0800 (PST) Received: from localhost (crad-millertime.qualcomm.com. [129.46.73.201]) by mx.google.com with ESMTPSA id f5sm25160114pat.11.2014.03.05.17.10.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Mar 2014 17:10:14 -0800 (PST) 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: Org Mode 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