From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Separate clocksum format for durations >= 1 day Date: Tue, 06 Nov 2012 20:55:12 +0100 Message-ID: <877gpy7bhb.fsf@gmail.com> References: <87k3ty7hot.fsf@gmail.com> <20121106192645.GA9405@c3po> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVpJ2-0004R9-T6 for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 14:59:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVpJ0-0001xI-HI for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 14:59:28 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:34514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVpJ0-0001vl-8o for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 14:59:26 -0500 Received: by mail-wg0-f49.google.com with SMTP id gg4so401318wgb.30 for ; Tue, 06 Nov 2012 11:59:25 -0800 (PST) In-Reply-To: <20121106192645.GA9405@c3po> (Toby Cubitt's message of "Tue, 6 Nov 2012 20:26:45 +0100") 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 Toby Cubitt writes: > I doubt it can be done now, since we already allow user-defined format > strings. I'm more focused on what we will be able to do. > Where are displayed durations formatted with org-time-clocksum-format et > al. parsed back to a number of minutes in the current code? If there is > anywhere, it's surely broken because a user-supplied > `org-time-clocksum-format' or `org-time-clocksum-fractional-format' could > already format the duration in arbitrarily bizarre ways as things are > currently. In org-element.el. > You mean abandon any sort of customizable format string (since that > inherently can't be parsed back in general), and use a hard-coded > conditional "hh:mm" or "dd hh:mm" format? (Possibly retaining one > customisation option, org-time-clocksum-use-fractional, to switch this to > "hh.mm" or "dd hh.mm"?) We can allow a limited set of conses of format strings (with or without days), possibly defined in the same defcustom (see `org-table-number-regexp' customize interface). If we know the format string used, we can parse it back. > That would give me the format I want, but it's a feature regression. There are features more honoured in the breach than in the observance. I want to have a parseable Org syntax, for its own good. Regards,