Переглянути джерело

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.
Bastien Guerry 15 роки тому
батько
коміт
1a79ec6e31
2 змінених файлів з 6 додано та 1 видалено
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-clock.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-07-29  Nicolas Goaziou <n.goaziou@neuf.fr>  (tiny change)
+
+	* org-clock.el (org-clock-in): Bugfix: recognize timestamps with
+	an abbreviated format for days.
+
 2009-07-27  Bastien Guerry  <bzg@altern.org>
 
 	* org-protocol.el (org-protocol-default-template-key): New

+ 1 - 1
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))