0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-16 17:46:27 +00:00

org.el (org-scan-tags): Correctly match TODO keywords.

* org.el (org-scan-tags): Correctly match TODO keywords.

Thanks to Simon Thum for reporting this.
This commit is contained in:
Bastien Guerry 2012-05-08 14:10:09 +02:00
parent 0ebeb77a1a
commit c50f0c78d8

View file

@ -12829,7 +12829,9 @@ headlines matching this string."
" *\\(\\<\\("
(mapconcat 'regexp-quote org-todo-keywords-1 "\\|")
(org-re
"\\>\\)\\)? *\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$")))
(if todo-only
"\\>\\)\\)[ \t]+\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"
"\\>\\)\\)? *\\([^ ].*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"))))
(props (list 'face 'default
'done-face 'org-agenda-done
'undone-face 'default