From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: [PATCH] Support for more flexible effort specifications in TaskJuggler exporter Date: Wed, 08 Jun 2011 17:27:47 +0200 Message-ID: <87lixcfimk.fsf@sbs.ch> References: <4DE7346B.5010702@hickinbottom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUKfz-00083m-4w for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 11:28:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUKfx-00025N-0J for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 11:28:10 -0400 Received: from lo.gmane.org ([80.91.229.12]:52128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUKfw-000259-Fp for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 11:28:08 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QUKfp-00087F-01 for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 17:28:01 +0200 Received: from gateway01.sbszh.ch ([217.162.18.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 17:28:00 +0200 Received: from christian.egli by gateway01.sbszh.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 17:28:00 +0200 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: emacs-orgmode@gnu.org Hi Stuart Stuart Hickinbottom writes: > I've been experimenting with tracking medium-sized tasks in org as a > work-breakdown and exporting to TaskJuggler to see just how many > evenings and weekends I'll have to work to meet my promised deadlines! A > recent patch (patch 638, 6th Match 2011) added support for more flexible > effort estimate properties such as 4h, 3.5d etc. > > Unfortunately, at the moment the TaskJuggler exporter is more fussy over > this property and only accepts HH:MM or an integer, both of which it > translates to a number of days when exporting. > > The attached patch adds support for passing-through effort > specifications when they're in the form "REAL UNIT" as they are for TJ, > supporting the suffixes d, w, m and y in a consistent way to org. > Support for HH:MM or bare number of days should still work as before. It > also cleans up another couple of things about the export of effort: > > - HH:MM produces a floating point days duration now (was previously > rounded to an integer) > - The bare REAL effort regex failed to escape the decimal point (and > would match any char) > - Regexes now anchor to the string start to avoid matching the end of > duff values > - Docstring updated for more flexible effort specification Thanks for your patch. I just pushed a patch along the lines of yours which uses the built-in facilities of orgmode. It handles all effort durations that are defined in `org-duration-string-to-minutes'. This brings it in line with the rest of orgmode's effort handling. It also fixes the documentation in org.texi. Can you check and see if this fixes all your issues? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland