From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: How to switch to a specific state when clocking out? Date: Tue, 2 Jun 2009 20:38:07 +0530 Message-ID: References: <87k53ueonr.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBVbN-0002jM-Tb for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 11:08:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBVbJ-0002ai-By for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 11:08:33 -0400 Received: from [199.232.76.173] (port=48270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBVbJ-0002aT-4Y for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 11:08:29 -0400 Received: from mail-qy0-f116.google.com ([209.85.221.116]:60122) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBVbI-0004ya-Lw for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 11:08:28 -0400 Received: by qyk14 with SMTP id 14so12765408qyk.14 for ; Tue, 02 Jun 2009 08:08:27 -0700 (PDT) In-Reply-To: <87k53ueonr.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: Org-Mode On Tue, Jun 2, 2009 at 7:14 PM, Bernt Hansen wrote: > Manish writes: > >> Hello! >> >> Does anyone know of a counterpart to org-clock-in-switch-to-state >> that can switch to a specific state when clocking out of an item? > > Hi Manish! > > As far as I know that functionality does not exist. Thanks Bernt. I did notice you leaving tasks in STARTED state when clocking out. I do not know elisp at all but I dared to peep into org-clock.el. It seemed it would just require setting a variable, test for the variable when clocking out in org-clock-out function and call org-todo with the value of variable as ARG. It seems it is not as simple as that. I will try to play some more and see if anything comes out of that. Regards, -- Manish