all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Clocking repeating tasks
@ 2011-01-24 10:10 Jeff Horn
  2011-01-24 15:37 ` Bernt Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Horn @ 2011-01-24 10:10 UTC (permalink / raw)
  To: Org-mode ml

I just started using clocking and effort to plan my work, and I have a
lot of repeating tasks. I'd like the clock summary to reflect how much
I've worked on the task "recently".

Is there a variable to control how the clock summary is generated? In
particular, I'm looking for it to only sum the clocks from the last
time the task was marked "DONE".

I see three possible solutions, but none were obviously mentioned in
the manual or on Worg.
1) A variable exists to control this, and I don't know about it
2) I could work around it by having the clock cleared on "DONE" (I
don't like destroying data)
3) Or, the task shoved into a "clock history" drawer or something (I
don't know how to implement this myself)

TIA

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

* Re: Clocking repeating tasks
  2011-01-24 10:10 Clocking repeating tasks Jeff Horn
@ 2011-01-24 15:37 ` Bernt Hansen
  2011-01-24 18:09   ` Jeff Horn
  0 siblings, 1 reply; 8+ messages in thread
From: Bernt Hansen @ 2011-01-24 15:37 UTC (permalink / raw)
  To: Jeff Horn; +Cc: Org-mode ml

Jeff Horn <jrhorn424@gmail.com> writes:

> I just started using clocking and effort to plan my work, and I have a
> lot of repeating tasks. I'd like the clock summary to reflect how much
> I've worked on the task "recently".
>
> Is there a variable to control how the clock summary is generated? In
> particular, I'm looking for it to only sum the clocks from the last
> time the task was marked "DONE".
>
> I see three possible solutions, but none were obviously mentioned in
> the manual or on Worg.
> 1) A variable exists to control this, and I don't know about it
> 2) I could work around it by having the clock cleared on "DONE" (I
> don't like destroying data)
> 3) Or, the task shoved into a "clock history" drawer or something (I
> don't know how to implement this myself)

Hi Jeff,

The clocking total for the task on the modeline should reflect how much
time you have clocked since the last time you marked the task DONE.
org-mode records a property LAST_REPEAT which had the time you completed
the task last.  The modeline clock value counts minutes since that time.

The modeline should have both your current clocking total time (since
last repeat) and the effort limit displayed (as the limit).

HTH,
Bernt

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

* Re: Clocking repeating tasks
  2011-01-24 15:37 ` Bernt Hansen
@ 2011-01-24 18:09   ` Jeff Horn
  2011-01-24 18:18     ` Bernt Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Horn @ 2011-01-24 18:09 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org-mode ml

On Mon, Jan 24, 2011 at 10:37 AM, Bernt Hansen <bernt@norang.ca> wrote:
> The clocking total for the task on the modeline should reflect how much
> time you have clocked since the last time you marked the task DONE.
> org-mode records a property LAST_REPEAT which had the time you completed
> the task last.  The modeline clock value counts minutes since that time.
>
> The modeline should have both your current clocking total time (since
> last repeat) and the effort limit displayed (as the limit).

Indeed, the mode line does display effort. However, it has the sum of
all clocks compared against the effort level. Same thing for the
clocksum column in the agenda columns display. I'm not sure why I'm
not getting the expected behavior. I'll be able to work on this more
later in the day.

Did you customize any variables to get this behavior?

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

* Re: Clocking repeating tasks
  2011-01-24 18:09   ` Jeff Horn
@ 2011-01-24 18:18     ` Bernt Hansen
  2011-01-25  0:20       ` Jeff Horn
  0 siblings, 1 reply; 8+ messages in thread
From: Bernt Hansen @ 2011-01-24 18:18 UTC (permalink / raw)
  To: Jeff Horn; +Cc: Org-mode ml

Jeff Horn <jrhorn424@gmail.com> writes:

> On Mon, Jan 24, 2011 at 10:37 AM, Bernt Hansen <bernt@norang.ca> wrote:
>> The clocking total for the task on the modeline should reflect how much
>> time you have clocked since the last time you marked the task DONE.
>> org-mode records a property LAST_REPEAT which had the time you completed
>> the task last.  The modeline clock value counts minutes since that time.
>>
>> The modeline should have both your current clocking total time (since
>> last repeat) and the effort limit displayed (as the limit).
>
> Indeed, the mode line does display effort. However, it has the sum of
> all clocks compared against the effort level. Same thing for the
> clocksum column in the agenda columns display. I'm not sure why I'm
> not getting the expected behavior. I'll be able to work on this more
> later in the day.
>
> Did you customize any variables to get this behavior?

No - I tested it with a minimal emacs setup and it worked out of the
box for me.

The following task says [0:03/0:05] for me in the modeline when I clock
it in

--8<---------------cut here---------------start------------->8---
* TODO Test2
  SCHEDULED: <2011-01-25 Tue .+1d>
  CLOCK: [2011-01-24 Mon 13:14]--[2011-01-24 Mon 13:14] =>  0:00
  CLOCK: [2011-01-24 Mon 13:14]--[2011-01-24 Mon 13:14] =>  0:00
  CLOCK: [2011-01-24 Mon 13:13]--[2011-01-24 Mon 13:14] =>  0:01
  CLOCK: [2011-01-24 Mon 13:13]--[2011-01-24 Mon 13:13] =>  0:00
  CLOCK: [2011-01-24 Mon 13:13]--[2011-01-24 Mon 13:13] =>  0:00
  CLOCK: [2011-01-24 Mon 13:13]--[2011-01-24 Mon 13:13] =>  0:00
  CLOCK: [2011-01-24 Mon 13:12]--[2011-01-24 Mon 13:12] =>  0:00
  CLOCK: [2011-01-24 Mon 13:12]--[2011-01-24 Mon 13:12] =>  0:00
  CLOCK: [2011-01-24 Mon 13:12]--[2011-01-24 Mon 13:12] =>  0:00
  CLOCK: [2011-01-24 Mon 13:10]--[2011-01-24 Mon 13:12] =>  0:02
  CLOCK: [2011-01-24 Mon 13:12]--[2011-01-24 Mon 13:12] =>  0:00
  - State "DONE"       from "TODO"       [2011-01-24 Mon 11:11]
  CLOCK: [2011-01-23 Sun 13:05]--[2011-01-23 Sun 13:11] =>  0:06
  CLOCK: [2011-01-22 Sat 13:05]--[2011-01-22 Sat 13:11] =>  0:06
  :PROPERTIES:
  :LAST_REPEAT: [2011-01-24 Mon 11:11]
  :Effort:   0:05
  :END:
--8<---------------cut here---------------end--------------->8---

-Bernt

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

* Re: Clocking repeating tasks
  2011-01-24 18:18     ` Bernt Hansen
@ 2011-01-25  0:20       ` Jeff Horn
  2011-01-25  0:44         ` Bernt Hansen
  2011-01-25  0:52         ` Matt Lundin
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Horn @ 2011-01-25  0:20 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org-mode ml

On Mon, Jan 24, 2011 at 1:18 PM, Bernt Hansen <bernt@norang.ca> wrote:
> No - I tested it with a minimal emacs setup and it worked out of the
> box for me.

Thanks again for your help, Bernt. Something wonky happened on that
task, and it was a week ago the last time I performed it. I don't
pretend to remember what I did then.

It works on other tasks, at least after an emacs restart. I do
remember this happening before, and dropping clocking because I found
it annoying. That was several versions ago, and before I knew much
about emacs at all...

Oh well. Works now. Thanks for testing!

Jeff

PS - Would you mind sharing what you throw in your minimal init file?
Or do you whip one up for each testing task?

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

* Re: Clocking repeating tasks
  2011-01-25  0:20       ` Jeff Horn
@ 2011-01-25  0:44         ` Bernt Hansen
  2011-01-25  0:52         ` Matt Lundin
  1 sibling, 0 replies; 8+ messages in thread
From: Bernt Hansen @ 2011-01-25  0:44 UTC (permalink / raw)
  To: Jeff Horn; +Cc: Org-mode ml

Jeff Horn <jrhorn424@gmail.com> writes:

> PS - Would you mind sharing what you throw in your minimal init file?
> Or do you whip one up for each testing task?

Not at all.  I've actually posted my setup a few times on this list
already.  I have a permanent 'minimal-emacs' command I run from the bash
prompt.  It looks for an optional /tmp/test.el file to load if it exists
so I can put stuff in there for repeatable tests (usually when I want to
bisect something and find the commit that affected whatever I'm looking
for.)

Here's my minimal emacs setup:

~/bin is in my PATH

~/bin/minimal-emacs
--8<---------------cut here---------------start------------->8---
#!/bin/sh
TESTEL=
TESTFILE=/tmp/test.el
if test -e $TESTFILE
then
  TESTEL="-l /tmp/test.el"
fi
emacs -q -l ~/minimal.emacs $TESTEL 
--8<---------------cut here---------------end--------------->8---

/tmp/test.el
--8<---------------cut here---------------start------------->8---
(setq org-agenda-start-on-weekday 6)
--8<---------------cut here---------------end--------------->8---

~/minimal.emacs
--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
--8<---------------cut here---------------end--------------->8---

and that's it.  The /tmp/test.el is a leftover from the last time I used
this to report a problem on this list (around Jan 17th)

Regards,
Bernt

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

* Re: Clocking repeating tasks
  2011-01-25  0:20       ` Jeff Horn
  2011-01-25  0:44         ` Bernt Hansen
@ 2011-01-25  0:52         ` Matt Lundin
  2011-01-25  1:52           ` Jeff Horn
  1 sibling, 1 reply; 8+ messages in thread
From: Matt Lundin @ 2011-01-25  0:52 UTC (permalink / raw)
  To: Jeff Horn; +Cc: Bernt Hansen, Org-mode ml

Hi Jeff,

Jeff Horn <jrhorn424@gmail.com> writes:

> PS - Would you mind sharing what you throw in your minimal init file?
> Or do you whip one up for each testing task?

There's a nice example on the FAQ:

http://orgmode.org/worg/org-faq.html#minimal-emacs

Best,
Matt

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

* Re: Clocking repeating tasks
  2011-01-25  0:52         ` Matt Lundin
@ 2011-01-25  1:52           ` Jeff Horn
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Horn @ 2011-01-25  1:52 UTC (permalink / raw)
  To: Matt Lundin; +Cc: Bernt Hansen, Org-mode ml

Perfect. Thanks to Matt and Bernt for sharing this!

On Mon, Jan 24, 2011 at 7:52 PM, Matt Lundin <mdl@imapmail.org> wrote:
> Hi Jeff,
>
> Jeff Horn <jrhorn424@gmail.com> writes:
>
>> PS - Would you mind sharing what you throw in your minimal init file?
>> Or do you whip one up for each testing task?
>
> There's a nice example on the FAQ:
>
> http://orgmode.org/worg/org-faq.html#minimal-emacs
>
> Best,
> Matt
>



-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

end of thread, other threads:[~2011-01-25  1:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-24 10:10 Clocking repeating tasks Jeff Horn
2011-01-24 15:37 ` Bernt Hansen
2011-01-24 18:09   ` Jeff Horn
2011-01-24 18:18     ` Bernt Hansen
2011-01-25  0:20       ` Jeff Horn
2011-01-25  0:44         ` Bernt Hansen
2011-01-25  0:52         ` Matt Lundin
2011-01-25  1:52           ` Jeff Horn

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.