Allow org-clock-in-switch-to-state to be a function.
commitf70127dd3f95473ac80aa407bafca8f68f08e002
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 16 Oct 2008 16:26:43 +0000 (16 18:26 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 16 Oct 2008 16:26:43 +0000 (16 18:26 +0200)
tree20506c5fd45fd913fbcbee089ab82892b80cf19b
parent0fc4cdd17dcc974c81443f8739df7dfc2c9c9180
Allow org-clock-in-switch-to-state to be a function.

Allow org-clock-in-switch-to-state to be a function. This lets you have
different clocked in states for different TODO keyword sets, for example

(defun ahkt-clock-state (state)
  (cond ((string= state "TOREAD") "READING")
((string= state "TOWATCH") "WATCHING")
(t state)))

Also fix indentation on clock lines, and empty clock drawers when they are
inserted.
lisp/ChangeLog
lisp/org-clock.el