Allow previous state to be shown in state change log notes.
commitc32de18ae026aeef8f9c952033e5e840c87b5b75
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 12 Feb 2009 08:44:15 +0000 (12 09:44 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 12 Feb 2009 08:48:07 +0000 (12 09:48 +0100)
tree37ab81b1b69ab2218a68213ec2f17e18deebf5d6
parent23551eee32ef4b832ab24dda8a973e6df66a7cbd
Allow previous state to be shown in state change log notes.

Wanrong Lin writes:

     My TODO sequence is set up as following:

     (setq org-todo-keywords '((sequence "TODO(t)" "STARTED(s!)"
     "WAITING(w@/!)"      "MAYBE(m/!)" "DELEGATED(g@/!)"
     "DEFERRED(d!/!)" "HOLD(h!/!)" "|" "DONE(x)"      "CANCELED(c)")))

     The state change logging is great, but I wonder whether we can
     further improve it:

     1. Can we also include the original state in the log message?
     i.e.: instead of having      - State "DEFERRED"   [2009-02-11 Wed 11:38]
     we can have
     - State "DEFERRED"  from "HOLD" [2009-02-11 Wed 11:38]

     The message will be clearer, and useful even when somebody edited
     the TODO keyword in place without using the "org-todo" command
     (in that case, simply looking at all the "destination states" in
     the log message does not give us the right information).

This strikes me like a good idea, so I have implemented it with this
commit.
lisp/ChangeLog
lisp/org-clock.el
lisp/org.el