emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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

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 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).