From 7f2e22339cc928eaf594025e82a159cce6b9d550 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 28 Apr 2012 22:34:36 +0200 Subject: [PATCH] Fix `org-planning-or-clock-line-re' regexp * lisp/org.el (org-set-regexps-and-options): Fix `org-planning-or-clock-line-re' regexp. Indeed "\\>" will never match since time keywords must end with colons, which are not word constituent. --- lisp/org.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 838a9a18a..9ee309c79 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4789,10 +4789,11 @@ but the stars and the body are.") "\\|" org-clock-string "\\)\\)?" " *\\([[<][0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ?[^]\r\n>]*?[]>]\\|<%%([^\r\n>]*>\\)") org-planning-or-clock-line-re - (concat "\\(?:^[ \t]*\\(" org-scheduled-string - "\\|" org-deadline-string - "\\|" org-closed-string "\\|" org-clock-string - "\\)\\>\\)") + (concat "^[ \t]*\\(" + org-scheduled-string "\\|" + org-deadline-string "\\|" + org-closed-string "\\|" + org-clock-string "\\)") org-all-time-keywords (mapcar (lambda (w) (substring w 0 -1)) (list org-scheduled-string org-deadline-string