From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [ANN] New Org duration library Date: Tue, 21 Feb 2017 19:22:54 +0100 Message-ID: <87d1ebxv29.fsf@Rainer.invalid> References: <87bmu6p4f5.fsf@nicolasgoaziou.fr> <87h93nxxs4.fsf@Rainer.invalid> <8760k3toq2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgF5j-0005uA-B0 for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 13:23:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgF5e-0005bK-8l for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 13:23:11 -0500 Received: from [195.159.176.226] (port=45023 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgF5e-0005bD-1h for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 13:23:06 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cgF5T-0004IZ-JP for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 19:22:55 +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" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: >> You seem to have (some of) these aliased to org-duration format somehow. >> This breaks a lot of things because the format of the former variables >> is not recognized. I got a bunch of errors about :hour not being a list >> for instance. There surely must be a better way to handle the >> transition? > > Fixed. Thank you. Thanks, but will there be some helper function to migrate the old customizations? I didn't even remember that I had customized this variable until I couldn't clock in or out anymore (I remember now that I customized it so it would record durations in hours, not days/hours). >> Also, I find the documentation to be completely impenetrable. > > Great. Suggestions welcome. I'd first need to understand what the options there really mean. It seems that the variable can be set to just a symbol or (maybe) a string or a list of conses. The conses form refer to org-duration-units, but there the units are all defined as strings and no mention of the symbol special that apparently is another possibility. I don't really see why you'd mix symbols and strings in the same position. I have no idea what "mixed mode" is supposed to be and what happens if I specify both (special . h:mm) and ("h" . nil) for instance. Is the order of these important? >> Customization has offered to create a setting for org-duration-format >> that's not even mentioned in the documentation. > > Would it be possible, by any chance, to get a glimpse of that setting? I've set it to the symbol h:mm (shown as H:MM in customize) via the value menu in customize. I might read the documentation incorrectly, but to me it seems to say it should be the string "h:mm" instead. I'm left to wonder if (h:mm) is the same or different from ((special . h.mm)). Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra