From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: BUG: org-clock-find-position slurpes a non-clock line into drawer Date: Sat, 14 Mar 2009 08:09:29 +0100 Message-ID: <2E166E25-61EC-4DD7-84D5-4F1EC4F8B272@uva.nl> References: <8763id9uuw.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiO03-0007bg-It for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:09:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiNzy-0007bU-Jm for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:09:38 -0400 Received: from [199.232.76.173] (port=48383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiNzy-0007bR-Fc for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:09:34 -0400 Received: from mx20.gnu.org ([199.232.41.8]:16399) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LiNzx-0005ae-Rz for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:09:34 -0400 Received: from mail-ew0-f179.google.com ([209.85.219.179]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiNzx-0003QH-2I for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:09:33 -0400 Received: by ewy27 with SMTP id 27so3809207ewy.42 for ; Sat, 14 Mar 2009 00:09:30 -0700 (PDT) In-Reply-To: <8763id9uuw.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard KLINDA Cc: emacs-orgmode@gnu.org 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