From: Damon Haley <news@vinylisland.org>
To: emacs-orgmode@gnu.org
Subject: Invalid capture template with pull of Org 7.8.03?
Date: Thu, 12 Jan 2012 16:28:51 -0700 [thread overview]
Message-ID: <4F0F6CB3.6050908@vinylisland.org> (raw)
Hi I was wondering if someone could point me in the right direction
because one of my Org capture templates, that I use to feed questions to
myself (for later use with org-drill) just broke with the most recent
bzr pull of emacs.
Now, when I try to use the capture template, I only get this header in
my target org file.
** Invalid capture template
I'm on the 24.0.92.1 version of emacs which ships with Org 7.8.03.
Here's the template, which I stole from:
http://orgmode.org/worg/org-contrib/org-drill.html
(add-to-list 'org-capture-templates
'
("W"
"Capture web snippet"
entry
(file+headline "~/git/org/learn-emacs.org" "Emacs mastery")
,(concat "* Fact: '%:description' :"
(format "%s" org-drill-question-tag)
":\n:PROPERTIES:\n:DATE_ADDED: %u\n:SOURCE_URL:
%c\n:END:\n\n%i\n%?\n")
:empty-lines 1
:immediate-finish t))
Is there any obvious reason this template would break?
I know I could read the capture documentation further but I don't have a
few hours to spend on this right now (plus I'm extremely beginner with
lisp). But I'm pretty sure it just broke with a recent pull of emacs
without me changing any other settings.
Thanks for any help,
Damon
p.s. Here's the complete config that I used to try to debug the problem.
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" .
org-mode))
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(global-set-key (kbd "C-c r") 'org-capture)
;; Capture templates for: TODO tasks, Notes, appointments, phone calls,
and org-protocol
(setq org-capture-templates
(quote (("t" "todo" entry (file "~/git/org/refile.org")
"* TODO %?\n%U\n%a\n %i" :clock-in t :clock-resume t)
("n" "note" entry (file "~/git/org/refile.org")
"* %? :NOTE:\n%U\n%a\n %i" :clock-in t :clock-resume t)
("j" "Journal" entry (file+datetree "~/git/org/diary.org")
"* %?\n%U\n %i" :clock-in t :clock-resume t)
("w" "org-protocol" entry (file "~/git/org/refile.org")
"* TODO Review %c\n%U\n %i" :immediate-finish t)
("p" "Phone call" entry (file "~/git/org/refile.org")
"* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
("h" "Habit" entry (file "~/git/org/refile.org")
"* NEXT %?\n%U\n%a\nSCHEDULED: %t
.+1d/3d\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n
%i"))))
(add-to-list 'org-capture-templates
'
("W"
"Capture web snippet"
entry
(file+headline "~/git/org/learn-emacs.org" "Emacs mastery")
,(concat "* Fact: '%:description' :"
(format "%s" org-drill-question-tag)
":\n:PROPERTIES:\n:DATE_ADDED: %u\n:SOURCE_URL:
%c\n:END:\n\n%i\n%?\n")
:empty-lines 1
:immediate-finish t))
next reply other threads:[~2012-01-12 23:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-12 23:28 Damon Haley [this message]
2012-01-12 23:44 ` Invalid capture template with pull of Org 7.8.03? Nick Dokos
2012-01-13 0:07 ` Damon Haley
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0F6CB3.6050908@vinylisland.org \
--to=news@vinylisland.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.