Agenda: Fix sorting by TODO state in block agendas
commitb44e3d05ee9e676fddd42890f601aaa4ea00b4ba
authorCarsten Dominik <carsten.dominik@gmail.com>
Mon, 16 Feb 2009 12:45:31 +0000 (16 13:45 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 16 Feb 2009 18:01:52 +0000 (16 19:01 +0100)
tree85407d9705d2cd5d5ced7a7f9d82197d9e650212
parenta6c8fac4f9f790c1dc4add91fbff2b3d5214384d
Agenda: Fix sorting by TODO state in block agendas

Christopher Suckling reports that todo state sorting doe not work in
block agenda.  The reason for this that the variable
`org-todo-keywords-for-agenda' which is supposed to be a lost of all
keywords of all buffers contributing to the agenda, is not correct
during the construction of a block agenda.

Therefore, this commit instructs the todo state comparison function to
refer back to the original buffer for a list of todo keywords.
lisp/ChangeLog
lisp/org-agenda.el