[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Persistent clocks

From: Bernt Hansen
Subject: [Orgmode] Re: Persistent clocks
Date: Tue, 29 Jul 2008 21:26:42 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

"Denis Bueno" <address@hidden> writes:

> I'm a reticent poster, but long time subscriber, of this mailing list.
>  Recently I've started using org-mode more seriously, and for various
> reasons which are not important, I find the current clock
> implementation of limited usefulness.  Basically, I may restart Emacs
> multiple times each day, and what I'm wondering is whether persistent
> clocks would be easy or even useful to implement.  If it's easier to
> change my habits than org-mode, I'm open to that.
> The behavior I'm thinking seems simple:
>   - keep the clock information in drawers (as it already seems to be)
>   - when a new org-mode file is opened and there's no clock running,
> scan the file for any unfinished clocks.  If there is one, restart a
> clock from the appropriate start time.  If there is more than one,
> signal an error.
> That implementation wouldn't require serialising the clock state to a
> different location --- just restarting the clock that was active when
> Emacs was killed.
> Does this idea make sense, and would it be useful to anyone?  Or
> should I think about adapting my workflow to pay attention to the
> clock more?

I use the clock all the time and occasionally I restart Emacs during
the day.  In that case I find it pretty easy to go to agenda view for
today, hit 'l' to show the clocked time for today and pick the last item
and clock that in again - then I just delete the new clock line and the
old start time is used when the clock stops.

I personally don't do this enough to want it to be automatic.  In other
work flows it may be wrong for it to be automatic.  For example: If you
are in org FILE1 and quit with an open clock and then restart Emacs and
open org FILE2 which also has an open clock it would be wrong to make
that one active - since the last clocked time you used was in FILE1.

Since Carsten added the start and end times recently to the agenda view
for log-mode it's easy to see which clock entries are missing an end

My vote would be just to manually restart the clock using the agenda as
described above.

Just my 2 cents,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]