* BUG: org-clock-find-position slurpes a non-clock line into drawer
@ 2009-03-13 17:48 Richard KLINDA
2009-03-14 7:09 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Richard KLINDA @ 2009-03-13 17:48 UTC (permalink / raw)
To: emacs-orgmode
To reproduce, set your org-clock-into-drawer to 3 (or any number).
Then:
,----
| * Foo
| - [ ] bar baz
`----
Clock in and out org-clock-into-drawer times, after that I get (=> the
checkbox line got into the logbook drawer):
,----
| * Foo
| :LOGBOOK:
| CLOCK: [2009-03-13 Fri 18:45]--[2009-03-13 Fri 18:45] => 0:00
| CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] => 0:00
| CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] => 0:00
| - [ ] bar baz
| :END:
`----
The bug is in org-clock-find-position, I commented out these lines:
; (if (and (>= (org-get-indentation) ind-last)
; (org-at-item-p))
; (org-end-of-item))
Now it works, but maybe this breaks other stuff, so please Carsten take
a look at this, thanks!
--
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG: org-clock-find-position slurpes a non-clock line into drawer
2009-03-13 17:48 BUG: org-clock-find-position slurpes a non-clock line into drawer Richard KLINDA
@ 2009-03-14 7:09 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-03-14 7:09 UTC (permalink / raw)
To: Richard KLINDA; +Cc: emacs-orgmode
Yes, Org is mistaking this item for a clock note. This is hard to
avoid.
I recommend the setting
(setq org-clock-into-drawer t)
which will create the drawer already for the first
clock line and avoid this problem.
- Carsten
On Mar 13, 2009, at 6:48 PM, Richard KLINDA wrote:
> To reproduce, set your org-clock-into-drawer to 3 (or any number).
>
> Then:
>
> ,----
> | * Foo
> | - [ ] bar baz
> `----
>
> Clock in and out org-clock-into-drawer times, after that I get (=> the
> checkbox line got into the logbook drawer):
>
> ,----
> | * Foo
> | :LOGBOOK:
> | CLOCK: [2009-03-13 Fri 18:45]--[2009-03-13 Fri 18:45] => 0:00
> | CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] => 0:00
> | CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] => 0:00
> | - [ ] bar baz
> | :END:
> `----
>
> The bug is in org-clock-find-position, I commented out these lines:
>
> ; (if (and (>= (org-get-indentation) ind-last)
> ; (org-at-item-p))
> ; (org-end-of-item))
>
> Now it works, but maybe this breaks other stuff, so please Carsten
> take
> a look at this, thanks!
>
> --
> Richard
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-14 7:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 17:48 BUG: org-clock-find-position slurpes a non-clock line into drawer Richard KLINDA
2009-03-14 7:09 ` Carsten Dominik
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.