From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: fractional hours for timestamps? Date: Mon, 16 Aug 2010 13:28:34 +0200 Message-ID: References: <87bp974wng.fsf@gnu.org> <87d3tn1yil.fsf@dasa3.iem.pw.edu.pl> <87vd7erk6f.fsf@gnu.org> <87r5i2kfv1.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=33066 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okxs7-0004L9-TS for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 07:29:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Okxrz-000773-9x for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 07:28:55 -0400 Received: from lo.gmane.org ([80.91.229.12]:57997) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Okxrz-00076h-4W for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 07:28:47 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Okxrx-0007Wt-23 for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 13:28:45 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Aug 2010 13:28:45 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Aug 2010 13:28:45 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik writes: > On Aug 13, 2010, at 11:43 AM, Łukasz Stelmach wrote: > >> Bastien writes: >> >>> Łukasz Stelmach writes: >>> >>>> I think Greg's point is about entering data using only numeric >>>> keypad. I >>>> can confirm that I have considered these issues (esp. 1400 >>>> vs. 14:00). Fractional hours don't seem to be that easy as there are >>>> countries like Poland where you use comma as decimal point >>>> (working with >>>> Emacs' built in calc is a pain) which earns another few lines for >>>> parsing code. >>> >>> AFAIC, I won't mess with this part of the code, I think it's quite >>> easy >>> enough to enter 14:00 instead of 1400... >> >> Not really in fact if you use keypad. It's not about the number of >> keystrokes but their layout. Try it. > > Hi Lukasz, > > the problem with making the parser more general is that it might > start to interpret years as durations and the other way round. > You are welcome to submit a patch - but it would have to be a careful > one. > > - Carsten I'm curious if using the decimal point on the numeric keyboard instead of the ":" colon would be the simplest solution in time durations too ... e.g 14:00+1,30. (add one hour 30 minutes). But knowing how clever the parser is that might step on the shoes of other hidden cleverness I am unaware of.