From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard KLINDA Subject: BUG: org-clock-find-position slurpes a non-clock line into drawer Date: Fri, 13 Mar 2009 18:48:55 +0100 Message-ID: <8763id9uuw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiBXo-0006cR-5G for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 13:51:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiBXj-0006aB-Ko for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 13:51:39 -0400 Received: from [199.232.76.173] (port=33703 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiBXj-0006a7-Ev for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 13:51:35 -0400 Received: from viefep17-int.chello.at ([62.179.121.37]:29309) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiBXi-0007oW-Rw for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 13:51:35 -0400 Received: from edge05.upc.biz ([192.168.13.212]) by viefep17-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090313175124.VYWG14441.viefep17-int.chello.at@edge05.upc.biz> for ; Fri, 13 Mar 2009 18:51:24 +0100 Received: from ignotus by localhost with local (masqmail 0.2.21) id 1LiBVA-29G-00 for ; Fri, 13 Mar 2009 18:48:56 +0100 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: emacs-orgmode@gnu.org 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