* Collapsing tracked time?
@ 2011-09-16 20:01 Steinar Bang
2011-09-16 20:21 ` Stuart Hickinbottom
0 siblings, 1 reply; 13+ messages in thread
From: Steinar Bang @ 2011-09-16 20:01 UTC (permalink / raw)
To: emacs-orgmode
For one particular long running TODO, I have to scroll over several
(well... more than one) screen pages of time stamps until I get to the
payload.
Is it possible to let the time stamps be collapsed/hidden by default,
and only toggle them visible if I need to adjust a time stamp or two?
Thanks!
- Steinar
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-16 20:01 Collapsing tracked time? Steinar Bang
@ 2011-09-16 20:21 ` Stuart Hickinbottom
2011-09-17 8:36 ` Steinar Bang
0 siblings, 1 reply; 13+ messages in thread
From: Stuart Hickinbottom @ 2011-09-16 20:21 UTC (permalink / raw)
To: emacs-orgmode
Take a look at the org-clock-into-drawer and org-log-into-drawer
variables:
http://orgmode.org/manual/Clocking-commands.html
http://orgmode.org/manual/Tracking-TODO-state-changes.html
Does this do what you want?
Stuart
On 09/16/2011 09:01 PM, Steinar Bang wrote:
> For one particular long running TODO, I have to scroll over several
> (well... more than one) screen pages of time stamps until I get to the
> payload.
>
> Is it possible to let the time stamps be collapsed/hidden by default,
> and only toggle them visible if I need to adjust a time stamp or two?
>
> Thanks!
>
>
> - Steinar
>
>
--
Stuart Hickinbottom
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-16 20:21 ` Stuart Hickinbottom
@ 2011-09-17 8:36 ` Steinar Bang
2011-09-17 11:11 ` Olaf Dietsche
2011-09-17 11:27 ` Collapsing tracked time? Achim Gratz
0 siblings, 2 replies; 13+ messages in thread
From: Steinar Bang @ 2011-09-17 8:36 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Stuart Hickinbottom <stuart@hickinbottom.com>:
> Take a look at the org-clock-into-drawer and org-log-into-drawer
> variables:
> http://orgmode.org/manual/Clocking-commands.html
> http://orgmode.org/manual/Tracking-TODO-state-changes.html
> Does this do what you want?
The first URL does, or almost. Clocking into a :LOGBOOK: drawer is what
I want. Or, at least: it's what I want for long running tasks with a
lot of clocking in and out.
I am not sure I want this behaviour across all clockings and all org
files...?
After testing I have found out that:
- default behaviour on an emacs23 org-mode is to clock into a :LOGBOOK:
drawer if it exists
- I can set the org-clock-into-drawer variable to t, and then it will
create a :LOGBOOK: drawer when clocking in, and I can move the rest
of the timestamps into i
- My emacs23 org-mode doesn't have the CLOCK_INTO_DRAWER property, and
setting the LOG_INTO_DRAWER property on a subtree to t and always
(the values I tried) didn't have any effect on clocking
If there had been a quick way to add a :LOGBOOK: drawer to a TODO item,
I would have just used the current behaviour and inserted :LOGBOOK:
drawers at need.
Hm... I think the simplest way is to set org-clock-into-drawer to t in
.emacs, and see how that behaviour suits me.
Thanks!
- Steinar
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-17 8:36 ` Steinar Bang
@ 2011-09-17 11:11 ` Olaf Dietsche
2011-09-17 20:03 ` Steinar Bang
2011-09-17 11:27 ` Collapsing tracked time? Achim Gratz
1 sibling, 1 reply; 13+ messages in thread
From: Olaf Dietsche @ 2011-09-17 11:11 UTC (permalink / raw)
To: emacs-orgmode
Steinar Bang <sb@dod.no> writes:
>>>>>> Stuart Hickinbottom <stuart@hickinbottom.com>:
>
>> Take a look at the org-clock-into-drawer and org-log-into-drawer
>> variables:
>> http://orgmode.org/manual/Clocking-commands.html
>> http://orgmode.org/manual/Tracking-TODO-state-changes.html
>
>> Does this do what you want?
>
> The first URL does, or almost. Clocking into a :LOGBOOK: drawer is what
> I want. Or, at least: it's what I want for long running tasks with a
> lot of clocking in and out.
>
> I am not sure I want this behaviour across all clockings and all org
> files...?
You can set org-clock-into-drawer to a number, which is used as
threshold. When there are equal or more clocking entries, then they are
put into a drawer.
> After testing I have found out that:
> - default behaviour on an emacs23 org-mode is to clock into a :LOGBOOK:
> drawer if it exists
> - I can set the org-clock-into-drawer variable to t, and then it will
> create a :LOGBOOK: drawer when clocking in, and I can move the rest
> of the timestamps into i
> - My emacs23 org-mode doesn't have the CLOCK_INTO_DRAWER property, and
> setting the LOG_INTO_DRAWER property on a subtree to t and always
> (the values I tried) didn't have any effect on clocking
>
> If there had been a quick way to add a :LOGBOOK: drawer to a TODO item,
> I would have just used the current behaviour and inserted :LOGBOOK:
> drawers at need.
>
> Hm... I think the simplest way is to set org-clock-into-drawer to t in
> .emacs, and see how that behaviour suits me.
You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"), then
this string is used instead of "LOGBOOK".
C-h v org-clock-into-drawer RET
gives the complete documentation.
Regards, Olaf
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-17 8:36 ` Steinar Bang
2011-09-17 11:11 ` Olaf Dietsche
@ 2011-09-17 11:27 ` Achim Gratz
2011-09-17 20:05 ` Steinar Bang
1 sibling, 1 reply; 13+ messages in thread
From: Achim Gratz @ 2011-09-17 11:27 UTC (permalink / raw)
To: emacs-orgmode
Steinar Bang <sb@dod.no> writes:
> - My emacs23 org-mode doesn't have the CLOCK_INTO_DRAWER property, and
> setting the LOG_INTO_DRAWER property on a subtree to t and always
> (the values I tried) didn't have any effect on clocking
That particular asymmetry has been removed in a later version, so if you
update org-mode it should work as described in the online manual.
> If there had been a quick way to add a :LOGBOOK: drawer to a TODO item,
> I would have just used the current behaviour and inserted :LOGBOOK:
> drawers at need.
You can set any of those variables (but not the properties) to an
integer number and the drawer will be created when you add more
timestamps than that.
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-17 11:11 ` Olaf Dietsche
@ 2011-09-17 20:03 ` Steinar Bang
2011-11-25 20:55 ` Steinar Bang
0 siblings, 1 reply; 13+ messages in thread
From: Steinar Bang @ 2011-09-17 20:03 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>:
> You can set org-clock-into-drawer to a number, which is used as
> threshold. When there are equal or more clocking entries, then they are
> put into a drawer.
Yes, I saw that, when customizing the variable. But I decided to just
have it on always.
[snip!]
> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"), then
> this string is used instead of "LOGBOOK".
> C-h v org-clock-into-drawer RET
> gives the complete documentation.
Yes, I might do that also, if I decide to use :LOGBOOK: for notes.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-17 11:27 ` Collapsing tracked time? Achim Gratz
@ 2011-09-17 20:05 ` Steinar Bang
0 siblings, 0 replies; 13+ messages in thread
From: Steinar Bang @ 2011-09-17 20:05 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Achim Gratz <Stromeko@nexgo.de>:
> Steinar Bang <sb@dod.no> writes:
>> - My emacs23 org-mode doesn't have the CLOCK_INTO_DRAWER property,
>> and setting the LOG_INTO_DRAWER property on a subtree to t and always
>> (the values I tried) didn't have any effect on clocking
> That particular asymmetry has been removed in a later version, so if
> you update org-mode it should work as described in the online manual.
Yes, I guessed that might be the case. But for now I think I will go
with the native emacs org-mode, to keep things simple on new computers.
> You can set any of those variables (but not the properties) to an
> integer number and the drawer will be created when you add more
> timestamps than that.
Yes, I saw that, when customizing the variable. I even tried it a
little, before deciding to go for "always on".
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Collapsing tracked time?
2011-09-17 20:03 ` Steinar Bang
@ 2011-11-25 20:55 ` Steinar Bang
2011-11-30 12:24 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?) Steinar Bang
0 siblings, 1 reply; 13+ messages in thread
From: Steinar Bang @ 2011-11-25 20:55 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Steinar Bang <sb@dod.no>:
>>>>> Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>:
> [snip!]
>> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
>> then this string is used instead of "LOGBOOK".
>> C-h v org-clock-into-drawer RET
>> gives the complete documentation.
> Yes, I might do that also, if I decide to use :LOGBOOK: for notes.
Actually I tried doing it, but since the variable wasn't available, I
thought I needed a newer version of org-mode, than the one that comes
with emacs 23.
But it turns out that I just needed to load-library `org-clock' before I
could customize the variable, and then set to to "CLOCKS" (without the
quotes).
Thanks again! :-)
^ permalink raw reply [flat|nested] 13+ messages in thread
* "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?)
2011-11-25 20:55 ` Steinar Bang
@ 2011-11-30 12:24 ` Steinar Bang
2011-11-30 17:26 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 Bernt Hansen
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Steinar Bang @ 2011-11-30 12:24 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Steinar Bang <sb@dod.no>:
>>>>> Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>:
>> [snip!]
>>> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
>>> then this string is used instead of "LOGBOOK".
> Actually I tried doing it, but since the variable wasn't available, I
> thought I needed a newer version of org-mode, than the one that comes
> with emacs 23.
> But it turns out that I just needed to load-library `org-clock' before
> I could customize the variable, and then set to to "CLOCKS" (without
> the quotes).
And when clocking in on an item, a ":CLOCKS:" drawer is created under
that item.
However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
23.2 on Windows:
- The ":CLOCKS:..." string is plain black, and not the purple of the
:LOGBOOK: drawer (and presumably other drawers)
- Pressing `TAB' doesn't open and close the drawer
- Closing and reopening the item, shows the contents of the drawer, but
the drawer can't be collapsed with `TAB'
I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
behaviour was the same there.
Anyone have any idea how to fix this?
Thanks!
- Steinar
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2
2011-11-30 12:24 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?) Steinar Bang
@ 2011-11-30 17:26 ` Bernt Hansen
2011-11-30 17:35 ` Achim Gratz
2011-11-30 20:33 ` Olaf Dietsche
2 siblings, 0 replies; 13+ messages in thread
From: Bernt Hansen @ 2011-11-30 17:26 UTC (permalink / raw)
To: emacs-orgmode
Steinar Bang <sb@dod.no> writes:
>>>>>> Steinar Bang <sb@dod.no>:
>>>>>> Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>:
>>> [snip!]
>>>> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
>>>> then this string is used instead of "LOGBOOK".
>
>> Actually I tried doing it, but since the variable wasn't available, I
>> thought I needed a newer version of org-mode, than the one that comes
>> with emacs 23.
>
>> But it turns out that I just needed to load-library `org-clock' before
>> I could customize the variable, and then set to to "CLOCKS" (without
>> the quotes).
>
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.
>
> However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
> 23.2 on Windows:
> - The ":CLOCKS:..." string is plain black, and not the purple of the
> :LOGBOOK: drawer (and presumably other drawers)
> - Pressing `TAB' doesn't open and close the drawer
> - Closing and reopening the item, shows the contents of the drawer, but
> the drawer can't be collapsed with `TAB'
>
> I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
> behaviour was the same there.
>
> Anyone have any idea how to fix this?
Maybe add CLOCKS to the org-drawers variable?
Regards,
Bernt
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2
2011-11-30 12:24 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?) Steinar Bang
2011-11-30 17:26 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 Bernt Hansen
@ 2011-11-30 17:35 ` Achim Gratz
2011-11-30 20:33 ` Olaf Dietsche
2 siblings, 0 replies; 13+ messages in thread
From: Achim Gratz @ 2011-11-30 17:35 UTC (permalink / raw)
To: emacs-orgmode
Steinar Bang <sb@dod.no> writes:
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.
By default it would clock into LOGBOOK. If you define a CLOCKS drawer,
then you need to make that known to org-mode as a valid drawer (either
globally with org-drawers or file-local with a #+DRAWERS: line).
HTH,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2
2011-11-30 12:24 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?) Steinar Bang
2011-11-30 17:26 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 Bernt Hansen
2011-11-30 17:35 ` Achim Gratz
@ 2011-11-30 20:33 ` Olaf Dietsche
2011-11-30 22:43 ` Steinar Bang
2 siblings, 1 reply; 13+ messages in thread
From: Olaf Dietsche @ 2011-11-30 20:33 UTC (permalink / raw)
To: emacs-orgmode
Steinar Bang <sb@dod.no> writes:
>>>>>> Steinar Bang <sb@dod.no>:
>>>>>> Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>:
>>> [snip!]
>>>> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
>>>> then this string is used instead of "LOGBOOK".
>
>> Actually I tried doing it, but since the variable wasn't available, I
>> thought I needed a newer version of org-mode, than the one that comes
>> with emacs 23.
>
>> But it turns out that I just needed to load-library `org-clock' before
>> I could customize the variable, and then set to to "CLOCKS" (without
>> the quotes).
>
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.
>
> However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
> 23.2 on Windows:
> - The ":CLOCKS:..." string is plain black, and not the purple of the
> :LOGBOOK: drawer (and presumably other drawers)
> - Pressing `TAB' doesn't open and close the drawer
> - Closing and reopening the item, shows the contents of the drawer, but
> the drawer can't be collapsed with `TAB'
>
> I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
> behaviour was the same there.
>
> Anyone have any idea how to fix this?
Unfortunately, back then I suggested the name CLOCKS. But the default
clocks drawer name is CLOCK without the S.
So, you can either use "CLOCK" instead of "CLOCKS"
(custom-set-variables
'(org-clock-into-drawer "CLOCK"))
or as Bernt and Achim already suggested, you can
(add-to-list 'org-drawers "CLOCKS")
Regards, Olaf
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2
2011-11-30 20:33 ` Olaf Dietsche
@ 2011-11-30 22:43 ` Steinar Bang
0 siblings, 0 replies; 13+ messages in thread
From: Steinar Bang @ 2011-11-30 22:43 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>:
> Unfortunately, back then I suggested the name CLOCKS. But the default
> clocks drawer name is CLOCK without the S.
Ah, ok! :-)
> So, you can either use "CLOCK" instead of "CLOCKS"
> (custom-set-variables
> '(org-clock-into-drawer "CLOCK"))
> or as Bernt and Achim already suggested, you can
> (add-to-list 'org-drawers "CLOCKS")
I think I'll go for the simple solution and use "CLOCK".
I just want something other than LOGBOOK, since I use LOGBOOK to take
notes.
Thanks (to all).
- Steinar
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-11-30 22:43 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16 20:01 Collapsing tracked time? Steinar Bang
2011-09-16 20:21 ` Stuart Hickinbottom
2011-09-17 8:36 ` Steinar Bang
2011-09-17 11:11 ` Olaf Dietsche
2011-09-17 20:03 ` Steinar Bang
2011-11-25 20:55 ` Steinar Bang
2011-11-30 12:24 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?) Steinar Bang
2011-11-30 17:26 ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 Bernt Hansen
2011-11-30 17:35 ` Achim Gratz
2011-11-30 20:33 ` Olaf Dietsche
2011-11-30 22:43 ` Steinar Bang
2011-09-17 11:27 ` Collapsing tracked time? Achim Gratz
2011-09-17 20:05 ` Steinar Bang
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).