branch: externals/org commit a3788bd8be0921bda7c7c7dce2b8f22319e58cda Author: Ihor Radchenko <yanta...@gmail.com> Commit: Ihor Radchenko <yanta...@gmail.com>
org-scan-tags: Fix messed match groups in eeb4fa8c0 * lisp/org.el (org-scan-tags): Match space after TODO keyword outside group and match the TODO-keyword in its own group. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 03c424a10c..bb95366162 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10861,7 +10861,7 @@ headlines matching this string." ;; Get the correct level to match (concat "\\*\\{" (number-to-string start-level) "\\} ") org-outline-regexp) - " *\\(" (regexp-opt org-todo-keywords-1) " \\)?" + " *\\(?:\\(" (regexp-opt org-todo-keywords-1 t) "\\) \\)?" " *\\(.*?\\)\\([ \t]:\\(?:" org-tag-re ":\\)+\\)?[ \t]*$")) (props (list 'face 'default 'done-face 'org-agenda-done