emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Bug in clocking in: the list becomes corrupted by the CLOCK drawer
Date: Wed, 11 Feb 2009 10:27:06 -0500	[thread overview]
Message-ID: <873aelgfjp.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <87bpt9ggnn.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Wed\, 11 Feb 2009 10\:03\:08 -0500")

Bernt Hansen <bernt@norang.ca> writes:

> Carsten Dominik <dominik@science.uva.nl> 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.


      parent reply	other threads:[~2009-02-11 15:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09 15:04 Bug in clocking in: the list becomes corrupted by the CLOCK drawer Daniel Clemente
2009-02-11 10:34 ` Carsten Dominik
2009-02-11 11:09   ` Daniel Clemente
2009-02-11 12:21     ` Carsten Dominik
2009-02-11 12:24       ` Manish
2009-02-11 13:02       ` Daniel Clemente
2009-02-11 14:10         ` Carsten Dominik
2009-02-12 10:49           ` Daniel Clemente
2009-02-11 15:03   ` Bernt Hansen
2009-02-11 15:18     ` Carsten Dominik
2009-02-11 15:31       ` Bernt Hansen
2009-02-11 15:27     ` Bernt Hansen [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:

  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=873aelgfjp.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \


* 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


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).