emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Richard KLINDA <rklinda@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: BUG: org-clock-find-position slurpes a non-clock line into drawer
Date: Sat, 14 Mar 2009 08:09:29 +0100	[thread overview]
Message-ID: <2E166E25-61EC-4DD7-84D5-4F1EC4F8B272@uva.nl> (raw)
In-Reply-To: <8763id9uuw.fsf@gmail.com>

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

      reply	other threads:[~2009-03-14  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2E166E25-61EC-4DD7-84D5-4F1EC4F8B272@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=rklinda@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).