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.
This commit is contained in:
Bastien Guerry 2009-07-29 13:44:52 +08:00
parent 2884949a1f
commit 1a79ec6e31
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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))