diff --git a/lisp/org.el b/lisp/org.el index 020cfc873..3db1add8b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11691,7 +11691,7 @@ See also `org-scan-tags'." `(and ,tagsmatcher ,todomatcher) (or tagsmatcher todomatcher t)))) (when org--matcher-tags-todo-only - (setq matcher `(and (member todo org-not-done-keywords) ,matcher))) + (setq matcher `(and (member todo org-todo-keywords-1) ,matcher))) (cons match0 `(lambda (todo tags-list level) ,matcher))))) (defun org--tags-expand-group (group tag-groups expanded)