emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] BUG: org-clock-find-position slurpes a non-clock line into


From: Carsten Dominik
Subject: Re: [Orgmode] BUG: org-clock-find-position slurpes a non-clock line into drawer
Date: Sat, 14 Mar 2009 08:09:29 +0100

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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