From 1a79ec6e316f537eb525752e2914b62b14122635 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 29 Jul 2009 13:44:52 +0800 Subject: [PATCH] Bugfix: recognize timestamps with an abbreviated format for days. Emacs recently (when?) changed the abbreviated format for days. The clock was confused when trying to mach this format. This patch by Nicolas Goaziou fixes it. --- lisp/ChangeLog | 5 +++++ lisp/org-clock.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a37f4e9a..bee1eb6b7 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-07-29 Nicolas Goaziou (tiny change) + + * org-clock.el (org-clock-in): Bugfix: recognize timestamps with + an abbreviated format for days. + 2009-07-27 Bastien Guerry * org-protocol.el (org-protocol-default-template-key): New diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 7fa15e05b..48a0741ed 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))