emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] opinion+suggestions: Check boxes on headlines and cookies


From: Jose Robins
Subject: Re: [Orgmode] opinion+suggestions: Check boxes on headlines and cookies to take care of this into account...
Date: Fri, 04 Apr 2008 09:00:20 -0700
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)



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

The clocking works too, but then the TODO - STARTED - DONE is added
automatically.
Sorry Sebastian, did not exactly catch your point about "clocking works too". For me, if I try to clock in/out on a regular checkbox list item, clocking starts on it's parent and NOT on the checkbox list item.

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)))





  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]