From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jose Robins Subject: Re: opinion+suggestions: Check boxes on headlines and cookies to take care of this into account... Date: Fri, 04 Apr 2008 09:00:20 -0700 Message-ID: <47F65094.9010908@yahoo.com> References: <47F641C4.5010808@yahoo.com> <47F64252.5040303@yahoo.com> <87sky14sy8.fsf@kassiopeya.localdomain> <47F6443F.1030105@yahoo.com> <87od8p4s4a.fsf@kassiopeya.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1830726221==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhoOM-0007p6-Ri for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:03:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhoOL-0007nI-Ab for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:03:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhoOL-0007n6-3v for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:03:49 -0400 Received: from n1b.bullet.mail.ac4.yahoo.com ([76.13.13.71]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JhoOK-0004BW-SQ for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 12:03:49 -0400 In-Reply-To: <87od8p4s4a.fsf@kassiopeya.localdomain> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: emacs-orgmode Mailinglist This is a multi-part message in MIME format. --===============1830726221== Content-Type: multipart/alternative; boundary="------------060601090106080504050001" This is a multi-part message in MIME format. --------------060601090106080504050001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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))) > > > > > > --------------060601090106080504050001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

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





  
--------------060601090106080504050001-- --===============1830726221== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1830726221==--