From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Support modifiers in effort durations Date: Sun, 06 Mar 2011 18:47:41 +0100 Message-ID: <871v2kp2de.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=50058 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwI3i-0006vK-Jc for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 12:48:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwI3h-0005YQ-Nw for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 12:47:58 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:49786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwI3h-0005YH-GW for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 12:47:57 -0500 Received: by wwj40 with SMTP id 40so3715062wwj.30 for ; Sun, 06 Mar 2011 09:47:56 -0800 (PST) In-Reply-To: (Lawrence Mitchell's message of "Mon, 28 Feb 2011 11:43:33 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Mitchell Cc: emacs-orgmode@gnu.org, =?iso-8859-1?Q?S=E9bastien?= Vauban , Luke Crook Hi Lawrence, Lawrence Mitchell writes: > Here's a cleaned up patch that allows user-specified modifiers > for effort strings. The new variable `org-effort-durations' > lists modifiers, and their mapping to minutes (words, as well as > single-letter modifiers, are supported). Thanks a lot for this patch -- I've now applied it. I've just changed the way the regular expression is computed, I find rx-to-string a bit confusing (surely a matter of taste). > The default value is: > > (("h" . 60) > ("d" . 480) ; 8 hours > ("w" . 2400) ; five days > ("m" . 9600) ; 4 weeks > ("y" . 96000)) ; 40 weeks I agree this make sense. Thanks again, -- Bastien