From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: suggestion for a fix to org-clock-in Date: Mon, 3 Aug 2009 06:34:48 +0200 Message-ID: <263601DA-231D-422D-9C36-B0AB233D9533@gmail.com> References: <864oswa8ru.fsf@neuf.fr> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXpGC-0006lt-Kv for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:34:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXpG8-0006jR-75 for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:34:56 -0400 Received: from [199.232.76.173] (port=41550 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXpG7-0006jF-TA for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:34:51 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:36439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXpG7-0002af-G3 for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:34:51 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so1039752ewy.42 for ; Sun, 02 Aug 2009 21:34:51 -0700 (PDT) In-Reply-To: <864oswa8ru.fsf@neuf.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi, I think the dot after the abbreviated month should be considered a bug. What locales are doing this? Maybe send a bug report to Emacs? - Carsten On Jul 28, 2009, at 9:48 PM, Nicolas Goaziou wrote: > Hello, > > For some time zone reason, my time-stamps look like this [2009-07-28 > mar.]. Notice the dot after the name of the day. > > This prevents the regexp inside org-clock-in to recognize it as a > valid > clock format as thus to resume any started clock. > > I suggest the following simple patch. > > From 0f149d1e515d017fed78fc5038127970843f9e81 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Tue, 28 Jul 2009 20:55:06 +0200 > Subject: [PATCH] Teach org-clock-in about other date formats > > Depending on your time zone, the timestamps can have somewhat > differents formats (ex.: [2009-07-28 mar. 21:00]). > This kind of format is now recognized as a valid clock time when it > comes to resuming it. > --- > lisp/org-clock.el | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lisp/org-clock.el b/lisp/org-clock.el > index 7fa15e0..48a0741 100644 > --- a/lisp/org-clock.el > +++ b/lisp/org-clock.el > @@ -558,7 +558,7 @@ the clocking selection, associated with the > letter `d'." > (looking-at > (concat "^[ \t]* " org-clock-string > " \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}" > - " +\\sw+ +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$"))) > + " +\\sw+\.? +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$"))) > (message "Matched %s" (match-string 1)) > (setq ts (concat "[" (match-string 1) "]")) > (goto-char (match-end 1)) > -- > 1.6.0.4 > > > Comments are welcome. > > -- > Nicolas Goaziou > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode