From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] Separate clocksum format for durations >= 1 day Date: Tue, 06 Nov 2012 21:49:04 +0100 Message-ID: <87fw4mzccf.fsf@Rainer.invalid> References: <87objazi6p.fsf@Rainer.invalid> <20121106201038.GA3132@c3po> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVq5I-00058p-OA for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 15:49:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVq5H-0000kU-CF for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 15:49:20 -0500 Received: from plane.gmane.org ([80.91.229.3]:59880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVq5H-0000k3-64 for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 15:49:19 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TVq5M-0002Kj-N7 for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 21:49:24 +0100 Received: from pd9eb3c49.dip.t-dialin.net ([217.235.60.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Nov 2012 21:49:24 +0100 Received: from Stromeko by pd9eb3c49.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Nov 2012 21:49:24 +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: > 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