[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Jeff Horn
Perfect. Thanks to Matt and Bernt for sharing this!

On Mon, Jan 24, 2011 at 7:52 PM, Matt Lundin  wrote:
> Hi Jeff,
>
> Jeff Horn  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/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Matt Lundin
Hi Jeff,

Jeff Horn  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

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Bernt Hansen
Jeff Horn  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

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Jeff Horn
On Mon, Jan 24, 2011 at 1:18 PM, Bernt Hansen  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/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Bernt Hansen
Jeff Horn  writes:

> On Mon, Jan 24, 2011 at 10:37 AM, Bernt Hansen  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

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Jeff Horn
On Mon, Jan 24, 2011 at 10:37 AM, Bernt Hansen  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/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Clocking repeating tasks

2011-01-24 Thread Bernt Hansen
Jeff Horn  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

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode