From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] Separate clocksum format for durations >= 1 day Date: Mon, 05 Nov 2012 12:13:25 +0100 Message-ID: <874nl4xpyi.fsf@Rainer.invalid> References: <878vagxr67.fsf@Rainer.invalid> <20121105110129.GA9332@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]:41363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVKcl-0003rs-GP for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 06:13:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVKcf-0004xH-Ek for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 06:13:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:58411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVKcf-0004x7-7z for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 06:13:41 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TVKcm-0006I5-00 for emacs-orgmode@gnu.org; Mon, 05 Nov 2012 12:13:48 +0100 Received: from pd9eb3671.dip.t-dialin.net ([217.235.54.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Nov 2012 12:13:47 +0100 Received: from Stromeko by pd9eb3671.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Nov 2012 12:13:47 +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: > A format string isn't sufficient. It requires the number of time > components (days, hours, minutes, etc.) to be fixed in advance. Whereas a > function can decide whether to display e.g. days+hours or hours+minutes > depending on whether the time is longer or shorter than 24h. You can define the format specification with any semantics you want, including alternatives like those suggested above. > A defcustom that can either be a format string *or* a function might be > an option. What I'm saying is that this whole business of exposing formatting functions to the user is somewhat superfluous. Whether different formats dispatch their work to different (internal) functions is another matter — if it makes implementation easier, just do it. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada