From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ferrari Subject: help advicing org-todo Date: Thu, 3 Jan 2013 17:02:18 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqnFM-00060C-IT for emacs-orgmode@gnu.org; Thu, 03 Jan 2013 11:02:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqnFL-0008IA-Do for emacs-orgmode@gnu.org; Thu, 03 Jan 2013 11:02:20 -0500 Received: from mail-we0-f171.google.com ([74.125.82.171]:42166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqnFL-0008Hm-7R for emacs-orgmode@gnu.org; Thu, 03 Jan 2013 11:02:19 -0500 Received: by mail-we0-f171.google.com with SMTP id u3so7464811wey.30 for ; Thu, 03 Jan 2013 08:02:18 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I'd like to advice the function org-todo to check in and check out the clock automatically. I've defined the org-todo-keywords so that they have a choice letter as follows: (setq org-todo-keywords '( (sequence "TODO(t!)" "|" "DONE(d!)") (sequence "FEATURE(f!)" "BUG(b!)" "IMPLEMENTING(i!)" "|" "COMPLETED(c!)") )) and I'd like to start the clock each time the "i" (implementing) is chosen, stopping the clock each time the "c" (completed) is selected. However I've a little problem doing the advice because the argument is null and therefore I don't know which letter the user has pressed. Anyone can provide a little help? Thanks, Luca