From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: Bug in clocking in: the list becomes corrupted by the CLOCK drawer Date: Wed, 11 Feb 2009 12:09:11 +0100 Message-ID: <874oz1kz6w.fsf@CPU107.opentrends.net> References: <8763jj1wj3.fsf@CPU107.opentrends.net> 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 1LXCyK-0008Md-0Y for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 06:09:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXCyI-0008KN-Cw for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 06:09:39 -0500 Received: from [199.232.76.173] (port=37344 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXCyI-0008KC-68 for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 06:09:38 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]:54960) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXCyH-0003cU-MR for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 06:09:37 -0500 Received: by fg-out-1718.google.com with SMTP id l27so43987fgb.30 for ; Wed, 11 Feb 2009 03:09:35 -0800 (PST) In-Reply-To: (Carsten Dominik's message of "Wed, 11 Feb 2009 11:34:17 +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: Carsten Dominik Cc: emacs org-mode mailing list > this is difficult to avoid, since Org tries to incude clock notes > into the drawer, which look like items as well. They look like normal content except for the indentation. If it were like this, it would be very hard to differentiate: --------------------------------------- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] => 1:00 - a - b - c - d --------------------------------------- However, it is never like that. There's always at least 1 space/tab, like in: --------------------------------------- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] => 1:00 - a - b - c - d --------------------------------------- And thus it's possible to tell where the real content starts: at the first line without indentation. Of course, if the user uses indentation at the first line, they will be considered part of the drawers. Something like this: --------------------------------------- * learn the alphabet CLOCK: [2009-01-26 dl 17:04]--[2009-01-26 dl 18:04] => 1:00 - a - b - c - d --------------------------------------- But that would probably be what the user wanted; anyway this is not the usual case. On the other hand, I think the second example is more usual and should work. Thanks, Daniel