emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org a3788bd8be 3/3: org-scan-tags: Fix messed match gro


From: ELPA Syncer
Subject: [elpa] externals/org a3788bd8be 3/3: org-scan-tags: Fix messed match groups in eeb4fa8c0
Date: Mon, 5 Sep 2022 06:57:52 -0400 (EDT)

branch: externals/org
commit a3788bd8be0921bda7c7c7dce2b8f22319e58cda
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]