From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Separate clocksum format for durations >= 1 day
Date: Tue, 06 Nov 2012 21:49:04 +0100 [thread overview]
Message-ID: <87fw4mzccf.fsf@Rainer.invalid> (raw)
In-Reply-To: 20121106201038.GA3132@c3po
Toby Cubitt writes:
> On Tue, Nov 06, 2012 at 07:42:54PM +0100, Achim Gratz wrote:
>> Nicolas Goaziou writes:
>> > Again, these are strange and very limiting rules. What if I want to have
>> > "5 h 32 min"? And "5,3 days"?
>>
>> You provide a format string like you do now.
>
> That means if you want a format that's conditional on the duration, then
> you have to use whatever hard-coded formats are provided by the canned
> options.
Yes. The idea is to not open that can of worms, to speak figuratively.
> Conversely, if you want to customize the format you can't make
> it conditional on the duration.
Just as it is right now. I'm having no vested interest, but I'd
hesitate to take that option away, somebody else might rely on it.
[...]
> Including the changes in my patch, we're trying to customize three
> orthogonal things:
>
> 1. Conditioning what we display on the duration.
>
> 2. Regular vs. fractional minutes.
>
> 3. Customizing the formatting.
>
> Any combination of choices for these three factors is valid. 1 affects
> which values we compute. 2 affects how we compute one of the values. 3
> affects how we display those values.
>
> Your proposal doesn't allow 3 to be customized independently of 1 and 2.
There's nothing to stop us from looking at (and maybe modifying) the
format string and decide whether integer or fractional is requested, but
let's start simple. The canned recipes are easily extended to include
both possibilities.
> But it seems Nicolas wants to get rid of customizable format strings
> anyway, to allow clocksum durations to be parsed back into a number of
> minutes (see other part of this thread).
I can see how this would help some things, but then you'd surely need to
clamp down on customization for good and just offer a selection from
which to chose or require that a user-supplied format string meets
certain criteria or be accompanied with a parser that undoes the
formatting. But that gets ugly fast and doesn't help much with legacy
documents…
> For this, a single defcustom for choosing pre-canned formats with no
> user-defined functions and no customizable format strings is the only
> (sane) option. In which case this discussion is somewhat moot.
Indeed. But let's wait for Nicolas.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada
prev parent reply other threads:[~2012-11-06 20:49 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-27 14:01 [PATCH] Separate clocksum format for durations >= 1 day Toby Cubitt
2012-11-05 9:14 ` Nicolas Goaziou
2012-11-05 10:25 ` Toby Cubitt
2012-11-05 10:47 ` Achim Gratz
2012-11-05 11:01 ` Toby Cubitt
2012-11-05 11:13 ` Achim Gratz
2012-11-05 12:10 ` Toby Cubitt
2012-11-05 12:20 ` Nicolas Goaziou
2012-11-05 12:55 ` Toby Cubitt
2012-11-05 13:14 ` Nicolas Goaziou
2012-11-05 17:40 ` Achim Gratz
2012-11-05 18:16 ` Toby Cubitt
2012-11-05 22:45 ` Nicolas Goaziou
2012-11-06 10:35 ` Toby Cubitt
2012-11-06 10:57 ` Nicolas Goaziou
2012-11-06 12:01 ` Toby Cubitt
2012-11-06 12:29 ` Nicolas Goaziou
2012-11-06 13:04 ` Toby Cubitt
2012-11-06 17:41 ` Nicolas Goaziou
2012-11-06 19:26 ` Toby Cubitt
2012-11-06 19:55 ` Nicolas Goaziou
2012-11-06 20:35 ` Toby Cubitt
2012-11-08 0:26 ` Nicolas Goaziou
2012-11-08 11:28 ` Toby Cubitt
2012-11-09 8:04 ` Nicolas Goaziou
2012-11-13 13:03 ` Toby Cubitt
2012-11-14 15:04 ` Nicolas Goaziou
2012-11-14 15:37 ` Toby Cubitt
2012-11-14 16:09 ` Nicolas Goaziou
2012-11-14 16:20 ` Toby Cubitt
2012-11-16 15:12 ` Toby Cubitt
2012-11-17 8:48 ` Nicolas Goaziou
2012-11-17 14:00 ` Toby Cubitt
2012-11-17 14:42 ` Nicolas Goaziou
2012-11-17 16:02 ` Toby Cubitt
2012-11-20 16:12 ` Mike McLean
2012-11-20 17:28 ` Toby Cubitt
2012-11-20 19:24 ` Nicolas Goaziou
2012-11-21 23:29 ` Mike McLean
2012-11-30 11:22 ` [bug] " Sebastien Vauban
2012-11-06 18:42 ` [PATCH] " Achim Gratz
2012-11-06 20:10 ` Toby Cubitt
2012-11-06 20:49 ` Achim Gratz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fw4mzccf.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).