Start `emacs -Q`, create an `.org` file somewhere with the following contents and add it to the agenda (with `org-agenda-file-to-front`, say):
#+TODO: TODO WAIT | DONE
* TODO This is a test :work:
* WAIT This is another test :work:
Run `(org-tags-view nil "work+TODO=\"WAIT\"")` and you will see, as expected, an agenda view containing only the task tagged "WAIT".
Quit the agenda and call `org-todo-list`, then run `org-agenda-filter`, and enter `work+TODO="WAIT"` at the prompt. Do you get the exact same result? I had assumed I would, but I do not. Instead I get this message:
‘+TODO’ filter ignored because tag/category is not represented
So, questions:
- Is this as it should be?
- Is there a way of using `org-agenda-filter` to filter out tasks with a specific todo keyword?
I realize I could do this:
(setq org-agenda-custom-commands
'(("p" "Test"
tags "+work+TODO=\"WAIT\"")))
or perhaps use `org-agenda-filter-by-regexp`. My question is just whether `org-agenda-filter` should allow me to find all entries with a particular todo keyword, and if not, I guess I'd want to know why not?