emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Separate clocksum format for durations >= 1 day


From: Nicolas Goaziou
Subject: Re: [O] [PATCH] Separate clocksum format for durations >= 1 day
Date: Tue, 06 Nov 2012 20:55:12 +0100

Toby Cubitt <address@hidden> 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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]