Yes, sorry - was just trying this on in exactly this moment :-/

The clocking works too, but then the TODO - STARTED - DONE is added
automatically.

But this one could be corrected by using the hook
org-after-todo-state-change-hook. Some (not very elegant) function like

(defun my-delete-todo-keyword ()
  "Delete todo keyword when DONE"
  (interactive)
 ;; missing code for finding the headline
 (beginning-of-line)            
 (forward-word 1)
 (backward-word 1)
 (if (looking-at "DONE")
     (progn          
       (kill-word 1)
       (delete-char 1))))


(setq org-after-todo-state-change-hook (quote (org-clock-out-if-current 
sr-org-todo-toggle-to-started my-delete-todo-keyword)))





-- 
Sebastian Rose, Hanover, Germany
Phone: +49 173 83 93 417
Mail.: [EMAIL PROTECTED], [EMAIL PROTECTED]


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to