Skip to content

Commit

Permalink
org-scan-tags: Allow arbitrary character classes in todo keywords
Browse files Browse the repository at this point in the history
* lisp/org.el (org-scan-tags): Do not assume that todo keywords are
words.

Fixes https://orgmode.org/list/C5370FC1-ABBB-4FA1-8364-5B1DF0FB4755@irq0.org
  • Loading branch information
yantar92 committed Sep 3, 2022
1 parent ea66579 commit a1c923a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/org.el
Original file line number Diff line number Diff line change
Expand Up @@ -10799,7 +10799,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 'words) "\\)?"
" *\\(" (regexp-opt org-todo-keywords-1 'words) " \\)?"
" *\\(.*?\\)\\([ \t]:\\(?:" org-tag-re ":\\)+\\)?[ \t]*$"))
(props (list 'face 'default
'done-face 'org-agenda-done
Expand Down

0 comments on commit a1c923a

Please sign in to comment.