Hi Chao,
Chao Lu <[email protected]> writes:
> I defined a few org-agenda custom set, where I could M-x org-agenda RET
> then press "1" to list all my active TODOs. And I'm trying to write a
> function when I could pop-up a buffer and show me all the active TODOs. I
> tried (org-agenda "1"), and it does not work, then what should be the
> right
> way to do that?
Did you check the docstring of org-agenda? I.e.:
C-h f org-agenda RET
If I read your message correctly, the docstring suggests two ways to solve
your problem:
1. call (org-todo-list) directly
2. or (org-agenda nil "t")
Hope it helps,
Rasmus
--
This space is left intentionally blank