emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: [bug] org-capture fails with undefined org-time-was-given variable
Date: Thu, 23 May 2013 10:35:15 +0100	[thread overview]
Message-ID: <8761yaca3w.fsf@pinto.chemeng.ucl.ac.uk> (raw)

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

             reply	other threads:[~2013-05-23  9:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23  9:35 Eric S Fraga [this message]
2013-05-23 15:07 ` [bug] org-capture fails with undefined org-time-was-given variable Nick Dokos
2013-05-24  8:50   ` Eric S Fraga
2013-06-27 13:36     ` Bastien
2013-05-23 17:54 ` Bastien

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=8761yaca3w.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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