From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Bug in clocking in: the list becomes corrupted by the CLOCK drawer Date: Wed, 11 Feb 2009 10:27:06 -0500 Message-ID: <873aelgfjp.fsf@gollum.intra.norang.ca> References: <8763jj1wj3.fsf@CPU107.opentrends.net> <87bpt9ggnn.fsf@gollum.intra.norang.ca> 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 1LXGzY-0006YO-Px for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:27:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXGzX-0006Xs-2v for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:27:12 -0500 Received: from [199.232.76.173] (port=51853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXGzW-0006Xj-SH for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:27:10 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:55596) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LXGzW-0002q1-L4 for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:27:10 -0500 In-Reply-To: <87bpt9ggnn.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Wed\, 11 Feb 2009 10\:03\:08 -0500") 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 Bernt Hansen writes: > Carsten Dominik writes: > >> Here are your options: >> >> 1. Leave an empty line after the heading, before you list >> >> 2. The most robust may be to use >> >> (setq org-clock-into-drawer t) >> >> which will create the drawer immediately, already for >> the first clock entry. > > Hi Carsten, > > I'll change my setting from 2 to this as well. > > I tried using the customize interface to set this to 't' and it > complains that it is expecting an integer. So I set it to 1 which I > assume means the same as t in this case (I didn't check the code to > prove that though). Okay that doesn't work for me I have the following setup for clocking phone calls which are started by a remember template with :CLOCK-IN: in the text of the template ,----[ .emacs ] | (add-hook 'remember-mode-hook 'my-start-clock-if-needed 'append) | | (defun my-start-clock-if-needed () | (save-excursion | (goto-char (point-min)) | (when (re-search-forward " *:CLOCK-IN: *" nil t) | (replace-match "") | (org-clock-in)))) | `---- That breaks with org-clock-into-drawer set to 1 with the following error ,---- | org-clock-find-position: Wrong type argument: integer-or-marker-p, nil `---- I don't have time to dig into this more right now so I've just reverted back to the default for this variable. -Bernt