emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to switch to a specific state when clocking out?
@ 2009-06-02 13:39 Manish
  2009-06-02 13:44 ` Bernt Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: Manish @ 2009-06-02 13:39 UTC (permalink / raw)
  To: Org-Mode

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?

Thanks
-- 
Manish

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to switch to a specific state when clocking out?
  2009-06-02 13:39 How to switch to a specific state when clocking out? Manish
@ 2009-06-02 13:44 ` Bernt Hansen
  2009-06-02 15:08   ` Manish
  2009-06-02 16:05   ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Bernt Hansen @ 2009-06-02 13:44 UTC (permalink / raw)
  To: Manish; +Cc: Org-Mode

Manish <mailtomanish.sharma@gmail.com> 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.

-Bernt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to switch to a specific state when clocking out?
  2009-06-02 13:44 ` Bernt Hansen
@ 2009-06-02 15:08   ` Manish
  2009-06-02 16:05   ` Carsten Dominik
  1 sibling, 0 replies; 5+ messages in thread
From: Manish @ 2009-06-02 15:08 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org-Mode

  On Tue, Jun 2, 2009 at 7:14 PM, Bernt Hansen wrote:
  > Manish <mailtomanish.sharma@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: How to switch to a specific state when clocking out?
  2009-06-02 13:44 ` Bernt Hansen
  2009-06-02 15:08   ` Manish
@ 2009-06-02 16:05   ` Carsten Dominik
  2009-06-02 19:11     ` Manish
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-06-02 16:05 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org-Mode


On Jun 2, 2009, at 3:44 PM, Bernt Hansen wrote:

> Manish <mailtomanish.sharma@gmail.com> 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.

It does now - use org-clock-out-switch-to-state.

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: How to switch to a specific state when clocking out?
  2009-06-02 16:05   ` Carsten Dominik
@ 2009-06-02 19:11     ` Manish
  0 siblings, 0 replies; 5+ messages in thread
From: Manish @ 2009-06-02 19:11 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Bernt Hansen, Org-Mode

  On Tue, Jun 2, 2009 at 9:35 PM, Carsten Dominik wrote:
  >
  > On Jun 2, 2009, at 3:44 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.
  >
  > It does now - use org-clock-out-switch-to-state.

Thank you, Carsten!  Works perfectly.

I did manage to get two lines of that patch right. :)

Warm regards,
-- 
Manish

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-02 19:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-02 13:39 How to switch to a specific state when clocking out? Manish
2009-06-02 13:44 ` Bernt Hansen
2009-06-02 15:08   ` Manish
2009-06-02 16:05   ` Carsten Dominik
2009-06-02 19:11     ` Manish

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).