From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] org-capture fails with undefined org-time-was-given variable Date: Thu, 23 May 2013 10:35:15 +0100 Message-ID: <8761yaca3w.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfRwA-0003Qq-TU for emacs-orgmode@gnu.org; Thu, 23 May 2013 05:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfRw5-0002Kw-9v for emacs-orgmode@gnu.org; Thu, 23 May 2013 05:35:54 -0400 Received: from co9ehsobe003.messaging.microsoft.com ([207.46.163.26]:30615 helo=co9outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfRw5-0002Jb-0y for emacs-orgmode@gnu.org; Thu, 23 May 2013 05:35:49 -0400 Received: from mail161-co9 (localhost [127.0.0.1]) by mail161-co9-R.bigfish.com (Postfix) with ESMTP id B709346025F for ; Thu, 23 May 2013 09:35:41 +0000 (UTC) Received: from CO9EHSMHS014.bigfish.com (unknown [10.236.132.253]) by mail161-co9.bigfish.com (Postfix) with ESMTP id 9C6CE440247 for ; Thu, 23 May 2013 09:35:40 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I have the following org capture template: #+begin_src emacs-lisp (setq org-capture-templates '(("j" "journal" entry (file+datetree+prompt "~/s/notes/journal.org") "* %(format-time-string \"%H:%M\") %^{Entry} %^G\n%i%?"))) #+end_src (other rules elided for clarity). Trying this today (after not using it for a long time), I get the following error: ,---- | Debugger entered--Lisp error: (void-variable org-time-was-given) | org-capture-set-target-location() | org-capture(nil) | call-interactively(org-capture nil nil) | command-execute(org-capture) `---- I don't actually use this rule any longer as I prefer to clock in and out but I was trying to show a friend how he could use org for journalling. I've had a look at the source (reasonably up to date) but this variable does not seem to be something I should be setting. Is my capture rule somehow wrong? Or is this a bug in org-capture? Any suggestions or pointers welcome! Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_8.0.3-144-gf1b99a