summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-05-23 12:13:21 +0200
committerBastien Guerry <bzg@altern.org>2012-05-23 12:13:21 +0200
commit141d0fd24bbad52065e41ba7692f53710f627e73 (patch)
tree6eb688d583b196beca923f95a681f66b8280e396
parentf64a859db8173ea8c22c65de584878ab39f493df (diff)
downloadorg-mode-141d0fd24bbad52065e41ba7692f53710f627e73.tar.gz
org.el (org-scan-tags): Fix bug when building the scanner regexp.
* org.el (org-scan-tags): Fix bug when building the scanner regexp. Thanks to Mike McLean, who first reported this issue and provided a reproducible recipe. Thanks to Laurynas Biveinis and Loris Bennett who provided complementary feedback on this.
-rw-r--r--lisp/org.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 4710bd5..fa57fc0 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12828,10 +12828,7 @@ headlines matching this string."
org-outline-regexp)
" *\\(\\<\\("
(mapconcat 'regexp-quote org-todo-keywords-1 "\\|")
- (org-re
- (if todo-only
- "\\>\\)\\)[ \t]+\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"
- "\\>\\)\\)? *\\([^ ].*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"))))
+ (org-re "\\)\\>\\)? *\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$")))
(props (list 'face 'default
'done-face 'org-agenda-done
'undone-face 'default